Zhelovanov D.Y LabWork07 #9
@ -50,6 +50,7 @@
|
||||
Controls.Add(dataGridView);
|
||||
Name = "FormMails";
|
||||
Text = "Сообщения";
|
||||
Load += FormMails_Load;
|
||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||
ResumeLayout(false);
|
||||
}
|
||||
|
@ -48,5 +48,10 @@ namespace BlacksmithWorkshop
|
||||
MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
private void FormMails_Load(object sender, EventArgs e)
|
||||
{
|
||||
LoadData();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ namespace BlacksmithWorkshop
|
||||
});
|
||||
|
||||
// ñîçäàåì òàéìåð
|
||||
var timer = new System.Threading.Timer(new TimerCallback(MailCheck!), null, 0, 100000);
|
||||
var timer = new System.Threading.Timer(new TimerCallback(MailCheck!), null, 0, 100);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -159,7 +159,7 @@ namespace BlacksmithWorkshopClientApp.Controllers
|
||||
return Redirect("~/Home/Enter");
|
||||
}
|
||||
return
|
||||
View(APIClient.GetRequest<List<MessageInfoViewModel>>($"api/client/getmessages?clientId ={ APIClient.Client.Id}"));
|
||||
View(APIClient.GetRequest<List<MessageInfoViewModel>>($"api/client/getmessages?clientId ={APIClient.Client.Id}"));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,8 @@ namespace BlacksmithWorkshopRestApi.Controllers
|
||||
throw;
|
||||
}
|
||||
}
|
||||
[HttpPost]
|
||||
|
||||
[HttpPost]
|
||||
public void CreateOrder(OrderBindingModel model)
|
||||
{
|
||||
try
|
||||
|
@ -6,12 +6,13 @@
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
|
||||
"SmtpClientHost": "smtp.gmail.com",
|
||||
"SmtpClientPort": "587",
|
||||
"PopHost": "pop.gmail.com",
|
||||
"PopPort": "995",
|
||||
"MailLogin": "labwork15kafis@gmail.com",
|
||||
"MailPassword": "passlab15"
|
||||
"MailLogin": "lab7rpp@gmail.com",
|
||||
"MailPassword": "bvac xppu dkze ppcr"
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user