Ejemplo n.º 1
0
 private void sfButton19_Click(object sender, EventArgs e)
 {
     if (labelR1.Text == "مقبول" &&
         labelR2.Text == "مقبول" &&
         labelR3.Text == "مقبول" &&
         labelR4.Text == "مقبول" &&
         labelR5.Text == "مقبول" &&
         labelR6.Text == "مقبول" &&
         labelR7.Text == "مقبول" &&
         labelR8.Text == "مقبول" &&
         labelR9.Text == "مقبول")
     {
         Forms.Stage4FromStage2 frm = new Stage4FromStage2();
         frm.Show();
         this.Hide();
     }
     else
     {
         if (MessageBox.Show("لا يمكن الاستمرار لان بعض البيانات المدخله غير مقبوله ,هل تريد البدأ من مرحلة التخطيط؟", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             Forms.InfoProject_Form1 frm = new InfoProject_Form1();
             frm.Refresh();
             frm.Show();
             this.Hide();
         }
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     Forms.InfoProject_Form1 frm = new InfoProject_Form1();
     frm.Refresh();
     frm.Show();
     this.Hide();
 }
Ejemplo n.º 3
0
        private void sfButton1_Click(object sender, EventArgs e)
        {
            if (!isClear())
            {
                if (checkValid())
                {
                    using (SQLiteConnection conn = new SQLiteConnection(config.DataSource))

                        using (SQLiteCommand cmd = new SQLiteCommand())
                        {
                            cmd.Connection = conn;
                            conn.Open();

                            SQLiteHelper sh = new SQLiteHelper(cmd);

                            sh.Execute("DELETE FROM stage1");
                            var dic = new Dictionary <string, object>();

                            dic["cash"]    = double.Parse(doubleTextBoxCash.Text);
                            dic["same"]    = double.Parse(doubleTextBoxSame.Text);
                            dic["balance"] = double.Parse(doubleTextBoxBalance.Text);


                            sh.Insert("stage1", dic);

                            conn.Close();
                        }

                    if (MessageBox.Show("اضغط نعم للانتقال الى مرحلة قبل الاحاله او اضغط كلا للانتقال الى مرحلة بعد الاحاله", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {
                        Forms.Stage2_Form3 frm = new Stage2_Form3();
                        frm.Refresh();
                        frm.Show();
                        this.Hide();
                    }
                    else
                    {
                        Forms.Stage2And3_Form4 frm = new Stage2And3_Form4();
                        frm.Refresh();
                        frm.Show();
                        this.Hide();
                    }
                }
                else
                {
                    if (MessageBox.Show("لا يمكن الاستمرار لان بعض البيانات المدخله غير مقبوله ,هل تريد البداء من جديد ؟", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
                    {
                        Forms.InfoProject_Form1 frm = new InfoProject_Form1();
                        frm.Refresh();
                        frm.Show();
                        this.Hide();
                    }
                }
            }
            else
            {
                MessageBox.Show("يرجى ملىء جميع الحقول");
            }
        }
Ejemplo n.º 4
0
 private void buttonTNo_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("هل انت متاكد من رفض المشروع؟", "", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         Forms.InfoProject_Form1 frm = new InfoProject_Form1();
         frm.Refresh();
         frm.Show();
         this.Hide();
     }
 }