Exemple #1
0
 private void موادخاماوشكتعليالانتهاءToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Properties.Settings.Default.inquiry     = 10;
     Properties.Settings.Default.inqury_type = "1";
     presentation_layer.استعلامات qur = new presentation_layer.استعلامات();
     qur.ShowDialog();
 }
Exemple #2
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         if (comboBox1.Text == "منتجات منتهيه")
         {
             Properties.Settings.Default.inquiry     = 0;
             Properties.Settings.Default.inqury_type = "0";
             presentation_layer.استعلامات qur = new presentation_layer.استعلامات();
             qur.ShowDialog();
         }
         else if (comboBox1.Text == "منتجات اوشكت ع الانتهاء")
         {
             Properties.Settings.Default.inquiry     = 10;
             Properties.Settings.Default.inqury_type = "0";
             presentation_layer.استعلامات qur = new presentation_layer.استعلامات();
             qur.ShowDialog();
         }
         else if (comboBox1.Text == "مواد خام منتهيه")
         {
             Properties.Settings.Default.inquiry     = 0;
             Properties.Settings.Default.inqury_type = "1";
             presentation_layer.استعلامات qur = new presentation_layer.استعلامات();
             qur.ShowDialog();
         }
         else if (comboBox1.Text == "مواد الخام اوشكت علي الانتهاء")
         {
             Properties.Settings.Default.inquiry     = 10;
             Properties.Settings.Default.inqury_type = "1";
             presentation_layer.استعلامات qur = new presentation_layer.استعلامات();
             qur.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }