Exemplo n.º 1
0
 private void TabClosing()
 {
     if (_hasChanges)
       {
           DataLossWarningCloseDlg warn = new DataLossWarningCloseDlg();
           warn.ShowDialog();
           if (warn.DialogResult == System.Windows.Forms.DialogResult.OK)
               CloseCommand.Execute(this); ;
       }
 }