Exemplo n.º 1
0
 protected override void OnClosing(CancelEventArgs e)
 {   // maybe we need to save the project
     ToolBars.SaveToolbarPositions(topToolStripContainer);
     Settings.SaveGlobalSettings();
     // ToolStripManager.SaveSettings(this); // save the positions of the toolbars (doesn't work correctly)
     base.OnClosing(e);
 }
Exemplo n.º 2
0
 private void ParentForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     // maybe we need to save the project
     ToolBars.SaveToolbarPositions(toolStripContainer);
     Settings.SaveGlobalSettings();
     // ToolStripManager.SaveSettings(this); // save the positions of the toolbars (doesn't work correctly)
     cadFrame.Dispose();
     Application.Idle -= OnIdle;
 }