private void button1_Click(object sender, EventArgs e) { try { if (Accounts.InsertFiscalYear(dateTimePicker1.Value)) { MessageBox.Show("Fiscal Year Closed"); } else { MessageBox.Show("Fiscal Year Was Not Closed"); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } listBox1.DataSource = Accounts.ShowFiscalYEar(); }
private void FiscalYearClosing_Load(object sender, EventArgs e) { listBox1.DataSource = Accounts.ShowFiscalYEar(); }