Example #1
0
 private void HeaderControlReloadRised(object sender, EventArgs e)
 {
     if (_generalDataAndPerformanceControl.GetChangeStatus() || _compliancePerformanceControl.GetChangeStatus() ||
         (_detailWorkParamsControl != null && _detailWorkParamsControl.GetChangeStatus()))
     {
         if (MessageBox.Show("All unsaved data will be lost. Are you sure you want to continue?",
                             (string)new GlobalTermsProvider()["SystemName"], MessageBoxButtons.YesNoCancel,
                             MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
         {
             CancelAsync();
             UpdateDetail();
         }
     }
     else
     {
         CancelAsync();
         UpdateDetail();
     }
 }