Коммит

This commit is contained in:
dimazhelovanov 2023-04-24 10:10:36 +04:00
parent 1d847b26ca
commit a559755d90
6 changed files with 13 additions and 5 deletions

View File

@ -50,6 +50,7 @@
Controls.Add(dataGridView);
Name = "FormMails";
Text = "Сообщения";
Load += FormMails_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);
}

View File

@ -48,5 +48,10 @@ namespace BlacksmithWorkshop
MessageBoxIcon.Error);
}
}
private void FormMails_Load(object sender, EventArgs e)
{
LoadData();
}
}
}

View File

@ -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)
{

View File

@ -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}"));
}
}

View File

@ -70,7 +70,8 @@ namespace BlacksmithWorkshopRestApi.Controllers
throw;
}
}
[HttpPost]
[HttpPost]
public void CreateOrder(OrderBindingModel model)
{
try

View File

@ -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"
}