private void headerControl_ReloadRised(object sender, EventArgs e) { if (generalInformationControl.GetChangeStatus()) { 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) { UpdateDetail(); } } else { UpdateDetail(); } }
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(); } }