Minor bug with incorrect dat showing when we select a homework
This commit is contained in:
parent
746e9edb36
commit
e5512b06b0
@ -85,6 +85,7 @@ namespace EduNetworkBuilder
|
|||||||
CurrentUser.UserSettings.AutoStartPuzzles = false;
|
CurrentUser.UserSettings.AutoStartPuzzles = false;
|
||||||
CurrentUser.UserSettings.ChosenLanguage = oldsettings.ChosenLanguage;
|
CurrentUser.UserSettings.ChosenLanguage = oldsettings.ChosenLanguage;
|
||||||
CurrentUser.UserSettings.LanguageHasBeenChosen = true;
|
CurrentUser.UserSettings.LanguageHasBeenChosen = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (CurrentUser == null)
|
else if (CurrentUser == null)
|
||||||
{
|
{
|
||||||
@ -108,6 +109,8 @@ namespace EduNetworkBuilder
|
|||||||
tbHWSubmitted.LostFocus += SaveSchoolworkDataFromForm;
|
tbHWSubmitted.LostFocus += SaveSchoolworkDataFromForm;
|
||||||
dtpHWDue.LostFocus += SaveSchoolworkDataFromForm;
|
dtpHWDue.LostFocus += SaveSchoolworkDataFromForm;
|
||||||
|
|
||||||
|
tcTabControl.SelectedIndexChanged += UpdateFormFromSchoolwork;
|
||||||
|
|
||||||
//Make sure we update any profile settings they change
|
//Make sure we update any profile settings they change
|
||||||
tbFullName.LostFocus += SaveUserInfoFromForm;
|
tbFullName.LostFocus += SaveUserInfoFromForm;
|
||||||
}
|
}
|
||||||
@ -289,6 +292,10 @@ namespace EduNetworkBuilder
|
|||||||
ViewedSchoolwork.Name = tbHWName.Text;
|
ViewedSchoolwork.Name = tbHWName.Text;
|
||||||
ViewedSchoolwork.DueDate = dtpHWDue.Value;
|
ViewedSchoolwork.DueDate = dtpHWDue.Value;
|
||||||
}
|
}
|
||||||
|
private void UpdateFormFromSchoolwork(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
UpdateFormFromSchoolwork();
|
||||||
|
}
|
||||||
|
|
||||||
private void UpdateFormFromSchoolwork(SchoolworkClass What)
|
private void UpdateFormFromSchoolwork(SchoolworkClass What)
|
||||||
{
|
{
|
||||||
@ -322,8 +329,8 @@ namespace EduNetworkBuilder
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tbHWSubmitted.Visible = false;
|
tbHWSubmitted.Visible = false;
|
||||||
lblHWDue.Visible = false;
|
lblHWSubmitted.Visible = false;
|
||||||
}
|
}
|
||||||
if (ViewedSchoolwork.DueDate < dtpHWDue.MinDate) ViewedSchoolwork.DueDate = dtpHWDue.MinDate;
|
if (ViewedSchoolwork.DueDate < dtpHWDue.MinDate) ViewedSchoolwork.DueDate = dtpHWDue.MinDate;
|
||||||
dtpHWDue.Value = ViewedSchoolwork.DueDate;
|
dtpHWDue.Value = ViewedSchoolwork.DueDate;
|
||||||
|
Loading…
Reference in New Issue
Block a user