Example #1
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            frm_Supplier f1 = new frm_Supplier("add");

            f1.Show();
            this.Close();
        }
Example #2
0
        private void btn_Edit_Click(object sender, EventArgs e)
        {
            try
            {
                int currentIID = Convert.ToInt32(dgv_Sup_Find.CurrentRow.Cells[0].Value);


                frm_Supplier f2 = new frm_Supplier(currentIID, "edit");
                f2.Show();
                this.Close();
            }
            catch (Exception)
            {
                MessageBox.Show(" you must select  supplier  first");
            }
        }