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

            f1.Show();
            this.Close();
        }
示例#2
0
 private void btn_View_Details_Click(object sender, EventArgs e)
 {
     try
     {
         int          currentIID = Convert.ToInt32(dgv_Sup_Find.CurrentRow.Cells[0].Value);
         frm_Supplier f1         = new frm_Supplier(currentIID, "view");
         f1.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show(" you must select  supplier  first");
     }
 }
示例#3
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");
            }
        }
示例#4
0
        private void addToolStripMenuItem2_Click(object sender, EventArgs e)
        {
            frm_Supplier f1 = new frm_Supplier("add");

            f1.ShowDialog();
        }