private void SweetButton2Click(object sender, EventArgs e) { CoreDomain.Accounting.FiscalYear fiscalYear = (CoreDomain.Accounting.FiscalYear)olvYears.SelectedObject; if (fiscalYear != null) { EditFiscalYear editFiscalYear = new EditFiscalYear(false, false, true, fiscalYear); editFiscalYear.ShowDialog(); LoadData(); } }
private void BtnGenerateEventsClick(object sender, EventArgs e) { EditFiscalYear editFiscalYear = new EditFiscalYear(true, false, false, new CoreDomain.Accounting.FiscalYear() { OpenDate = null, CloseDate = null, Name = "", Id = 0 }); editFiscalYear.ShowDialog(); LoadData(); }