Ejemplo n.º 1
0
 private void new_tax_btn_Click(object sender, EventArgs e)
 {
     using (addtax myForm = new addtax("", 0.0, 0, 0))
     {
         myForm.FormClosed += new FormClosedEventHandler(MyForm_FormClosed);
         myForm.ShowDialog();
     }
 }
Ejemplo n.º 2
0
        private void edit_tax_btn_Click(object sender, EventArgs e)
        {
            DataRow row = table.Rows[dataGridView_tax.CurrentRow.Index];

            using (addtax myForm = new addtax(row["taxname"].ToString(), (double)row["tax_value"], 1, (int)row["tax_id"]))
            {
                myForm.FormClosed += new FormClosedEventHandler(MyForm_FormClosed);
                myForm.ShowDialog();
            }
        }