Ejemplo n.º 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (raOR.Checked == true)
     {
         if (MessageBox.Show("MAHUBTAA RABITAANKAAGA TIRTIRIDA RASIIDKAAN ?", "TIRTIRID", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
         {
             order.DELETE_Order(Convert.ToInt32(this.dgvOrders.CurrentRow.Cells[0].Value.ToString()));
             MessageBox.Show("WAA LA TIRTIRAY RASIIDKA", "TIRTIRID", MessageBoxButtons.OK, MessageBoxIcon.Information);
             this.dgvOrders.DataSource = order.SearchOrders2("");
         }
         else
         {
             MessageBox.Show("WAA LAGA NOQDAY TIRTIRIDA", "TIRTIRID", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
     }
     else
     {
         if (MessageBox.Show("MAHUBTAA RABITAANKAAGA TIRTIRIDA RASIIDKAAN ?", "TIRTIRID", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
         {
             order.DELETE_Purchase_Order(Convert.ToInt32(this.dgvOrders.CurrentRow.Cells[0].Value.ToString()));
             MessageBox.Show("WAA LA TIRTIRAY RASIIDKA", "TIRTIRID", MessageBoxButtons.OK, MessageBoxIcon.Information);
             this.dgvOrders.DataSource = order.Search_Purchase_Orders("");
         }
         else
         {
             MessageBox.Show("WAA LAGA NOQDAY TIRTIRIDA", "TIRTIRID", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
         }
     }
 }