コード例 #1
0
 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();
 }
コード例 #2
0
 private void FiscalYearClosing_Load(object sender, EventArgs e)
 {
     listBox1.DataSource = Accounts.ShowFiscalYEar();
 }