Esempio n. 1
0
 private void headerControl_ReloadRised(object sender, EventArgs e)
 {
     if (generalDataAndPerformanceControl.GetChangeStatus(true) || attributesAndParametersControl.GetChangeStatus(true))
     {
         if (MessageBox.Show("All unsaved data will be lost. Are you sure you want to continue?",
                             (string)new TermsProvider()["SystemName"], MessageBoxButtons.YesNoCancel,
                             MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
         {
             ReloadDirective();
         }
     }
     else
     {
         ReloadDirective();
     }
 }