private void LogOutLabel_Click(object sender, EventArgs e) { // Executing correct log out processes SystemProtocols.ApplyLogOutProtocols(); FormsMenuList.loginForm.Show(); // Closing form while freeing system resources FormsMenuList.errorsLogForm.Dispose(); }
protected override void OnFormClosing(FormClosingEventArgs e) { base.OnFormClosing(e); // Executing correct log out processes SystemProtocols.ApplyLogOutProtocols(); FormsMenuList.loginForm.Show(); // Closing form while freeing system resources FormsMenuList.errorsLogForm.Dispose(); }
private void LogOutLabel_Click(object sender, EventArgs e) { // Executing correct log out processes SystemProtocols.ApplyLogOutProtocols(); FormsMenuList.loginForm.Show(); SystemProtocols.ApplyCartManagementProtocol(3, null, 0, null, 0); // clearing the cart before logging out // Closing form while freeing system resources FormsMenuList.registerNewProduct.Dispose(); }
protected override void OnFormClosing(FormClosingEventArgs e) { base.OnFormClosing(e); // Executing correct log out processes SystemProtocols.ApplyLogOutProtocols(); FormsMenuList.loginForm.Show(); SystemProtocols.ApplyCartManagementProtocol(3, null, 0, null, 0); // clearing the cart before logging out // Closing form while freeing system resources FormsMenuList.registerNewProduct.Dispose(); }
private void LogOutLabel_Click(object sender, EventArgs e) { // Executing correct log out processes SystemProtocols.ApplyLogOutProtocols(); FormsMenuList.loginForm.Show(); if (userInformationForm != null) { userInformationForm.Dispose(); // Closing Child } SystemProtocols.ApplyCartManagementProtocol(3, null, 0, null, 0); // clearing the cart before logging out // Closing form while freeing system resources FormsMenuList.usersRegistryForm.Dispose(); }
protected override void OnFormClosing(FormClosingEventArgs e) { base.OnFormClosing(e); // Executing correct log out processes SystemProtocols.ApplyLogOutProtocols(); FormsMenuList.loginForm.Show(); if (userInformationForm != null) { userInformationForm.Dispose(); // Closing Child } SystemProtocols.ApplyCartManagementProtocol(3, null, 0, null, 0); // clearing the cart before logging out // Closing form while freeing system resources FormsMenuList.usersRegistryForm.Dispose(); }
private void LogOutLabel_Click(object sender, EventArgs e) { // Executing correct log out processes SystemProtocols.ApplyLogOutProtocols(); FormsMenuList.loginForm.Show(); if (timesheetChild != null) { timesheetChild.Dispose(); // disposing of child timesheet if open } if (salesRecordChild != null) { salesRecordChild.Dispose(); // disposing of child sales record if open } SystemProtocols.ApplyCartManagementProtocol(3, null, 0, null, 0); // clearing the cart before logging out // Closing form while freeing system resources FormsMenuList.reportsAnalyticsForm.Dispose(); }