示例#1
0
文件: tax.cs 项目: np1933/Metro-use
 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();
     }
 }
示例#2
0
文件: tax.cs 项目: np1933/Metro-use
        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();
            }
        }