Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            Manage_Supplier ms = new Manage_Supplier(uu);

            ms.Show();
        }
Exemple #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "" || textBox2.Text == "" || textBox3.Text == "" || textBox4.Text == "" || textBox5.Text == "")
     {
         MessageBox.Show("You cant Perform this operation with an empty Cell");
     }
     else
     {
         s.UpdateSupplier(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text, textBox5.Text);
         MessageBox.Show("Updated Successfully");
         this.Hide();
         Manage_Supplier ms = new Manage_Supplier(uu);
         ms.Show();
     }
 }
Exemple #3
0
 private void button5_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "" || textBox2.Text == "" || textBox3.Text == "")
     {
         MessageBox.Show("You can't Perform This Operation with an Empty Cell");
     }
     else
     {
         bool res = s.DeleteSupplier(textBox1.Text);
         if (res == true)
         {
             MessageBox.Show("Deleted Successfully");
             this.Hide();
             Manage_Supplier ms = new Manage_Supplier(uu);
             ms.Show();
         }
         else
         {
             MessageBox.Show("This supplier Id has a product assigned..Cannot perform this operation");
         }
     }
 }