private void frmMain_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.MainWindowSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); Settings.Default.ReopenWindows = reOpenWindowsToolStripMenuItem.Checked; if (Settings.Default.OpenWindows == null) { Settings.Default.OpenWindows = new StringCollection(); } else { Settings.Default.OpenWindows.Clear(); } if (Settings.Default.ReopenWindows && MdiChildren.Length > 0) { foreach (var myForm in MdiChildren) { if (Convert.ToBoolean(myForm.Tag)) { Settings.Default.OpenWindows.Add(myForm.GetType().FullName); if (myForm is FrmQueryRunner) { Settings.Default.QueryFilesToReopen = ((FrmQueryRunner)myForm).GetOpenFiles(); } } } } }
private void frmOrderEdit_FormClosing(object sender, FormClosingEventArgs e) { // salesOrderHeaderEntityBindingSource.CancelEdit(); if (_order != null) { _order.ResetErrors(); } Settings.Default.OrderEditSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); }
private void frmOrderSearch_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.OrderSearchSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); Settings.Default.FilterOnFromDate = dtpDateFrom.Checked; Settings.Default.FilterOnToDate = dtpDateTo.Checked; if (listBoxCountry.Items.Count > 0) { if (Settings.Default.Countries == null) { Settings.Default.Countries = new StringCollection(); } else { Settings.Default.Countries.Clear(); } foreach (var selectedRow in listBoxCountry.SelectedIndices) { Settings.Default.Countries.Add(selectedRow.ToString()); } } }
private void frmVacationBonus_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.VacationSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); }
private void FrmOrganizationStructure_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.OrganizationStructureSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); }
private void frmOrganization_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.OrderSearchSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); }
private void FrmQueryRunner_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.QueryRunnerSizeAndLocation = AWHelper.GetWindowNormalSizeAndLocation(this); }
private void frmOrderSearch_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.OrderSearchSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); Settings.Default.FilterOnFromDate = dtpDateFrom.Checked; Settings.Default.FilterOnToDate = dtpDateTo.Checked; }
private void FrmDataEditor_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.EntityViewerSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); Settings.Default.Save(); }
private void FrmEntitiesAndFields_FormClosed(object sender, FormClosedEventArgs e) { Settings.Default.EntitiesAndFieldsSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); Settings.Default.Save(); }
private void FrmHierarchyEditor_FormClosing(object sender, FormClosingEventArgs e) { Settings.Default.HierarchyEditorSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this); Settings.Default.Save(); }