private void OnBtnCalendar(System.Object sender, EventArgs e) { if (FPetraUtilsObject.HasChanges && FEditCalendar) { // If it is an editable calendar we need to save any outstanding changes first because they impact the calendar edit form string msg = MCommonResourcestrings.StrFinanceSaveBeforeEditCalendar; msg += " "; msg += MCommonResourcestrings.StrFinanceSaveByUsingApply; MessageBox.Show(msg, MCommonResourcestrings.StrFinanceEditCalendarTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { TFrmSetupAccountingPeriod Calendar = new TFrmSetupAccountingPeriod(FMainForm); Calendar.LedgerNumber = FLedgerNumber; Calendar.ReadOnly = !FEditCalendar; Calendar.Show(); } }
private void OnBtnCalendar(System.Object sender, EventArgs e) { if (FPetraUtilsObject.HasChanges && FEditCalendar) { // If it is an editable calendar we need to save any outstanding changes first because they impact the calendar edit form string msg = MCommonResourcestrings.StrFinanceSaveBeforeEditCalendar; msg += " "; msg += MCommonResourcestrings.StrFinanceSaveByUsingApply; MessageBox.Show(msg, MCommonResourcestrings.StrFinanceEditCalendarTitle, MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { TFrmSetupAccountingPeriod Calendar = new TFrmSetupAccountingPeriod(FMainForm); Calendar.LedgerNumber = FLedgerNumber; Calendar.ReadOnly = !FEditCalendar; Calendar.Show(); } }