Exemplo n.º 1
0
 private void _MainFrm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (TabControlMethods.IsEmpty())
     {
         return;
     }
     if ((TabControlMethods.CurrentTextArea.requiresSaving == 1) && Dialog.ShowSafeCloseFormDialog(tabControl) == "Cancel")
     {
         e.Cancel = true;
     }
 }