Ejemplo n.º 1
0
        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();
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
 private void frmOrderEdit_FormClosing(object sender, FormClosingEventArgs e)
 {
     // salesOrderHeaderEntityBindingSource.CancelEdit();
     if (_order != null)
     {
         _order.ResetErrors();
     }
     Settings.Default.OrderEditSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this);
 }
Ejemplo n.º 3
0
        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());
                }
            }
        }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 8
0
 private void frmOrderSearch_FormClosing(object sender, FormClosingEventArgs e)
 {
     Settings.Default.OrderSearchSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this);
     Settings.Default.FilterOnFromDate        = dtpDateFrom.Checked;
     Settings.Default.FilterOnToDate          = dtpDateTo.Checked;
 }
Ejemplo n.º 9
0
 private void FrmDataEditor_FormClosing(object sender, FormClosingEventArgs e)
 {
     Settings.Default.EntityViewerSizeLocation = AWHelper.GetWindowNormalSizeAndLocation(this);
     Settings.Default.Save();
 }
Ejemplo n.º 10
0
 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();
 }