Beispiel #1
0
 private void CashBox_Load(object sender, EventArgs e)
 {
     try
     {
         BL.CashBox.selection sel = new BL.CashBox.selection();
         this.dataGridView1.DataSource = sel.sel_all_month();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #2
0
        private void Cashes_Load(object sender, EventArgs e)
        {
            BL.CashBox.selection sel = new BL.CashBox.selection();

            try
            {
                this.dataGridView1.DataSource = sel.sel_chas(Convert.ToInt32(id));
                this.TxtTotal.Text            = sel.sel_sumation(Convert.ToInt32(id)).Rows[0][0].ToString();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }