private void ViewPositionsFormFormClosing(object sender, System.Windows.Forms.FormClosingEventArgs e) { var posOptions = new PositionOptions(); posOptions.LoadPreviousUser(); posOptions.Show(); }
private void BackBtnClick(object sender, EventArgs e) { var previousWindow = new PositionOptions(); previousWindow.LoadPreviousUser(); previousWindow.Visible = true; this.Hide(); }
internal void Logout() { var newDialog = MessageBox.Show(@"Are you sure you want to log out?", @"Logout", MessageBoxButtons.YesNo); if (newDialog != DialogResult.Yes) { return; } var loginForm = new Login(); var positionOptions = new PositionOptions(); positionOptions.Dispose(); loginForm.BringToFront(); loginForm.Show(); }
private void CreateFeedbackFormClosing(object sender, FormClosingEventArgs e) { var positionOptions = new PositionOptions(); positionOptions.Show(); positionOptions.LoadPreviousUser(); }