예제 #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            Principale_Form fr = new Principale_Form();

            fr.Show();
            fr.Dispose();
        }
예제 #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            this.Dispose();
            Dispose(new Principale_Form());
            Principale_Form fr = new Principale_Form();

            //fr.Dispose();
            //fr = new Principale_Form();
        }
예제 #3
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            try
            {
                rectangleShape2.Width += 1;
                if (rectangleShape2.Width >= 551)
                {
                    timer1.Stop();
                    this.Hide();
                    PubCon.testFile();

                    Principale_Form fr = new Principale_Form();
                    fr.Show();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("L'erreur suivant est survenue : " + ex.Message);
            }
        }
예제 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                if (userTxt.Text == "" || passTxt.Text == "" || tontineCombo.Text == "")
                {
                    MessageBox.Show("Veuillez completez tout les champs svp !!!", "Erreur de connection", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    PubCon.testlog = DynamicClasses.GetInstance().loginTest(userTxt.Text, passTxt.Text);
                    InstantRound.GetInstance().Id = dn.retourId("Id", "TRound", "Designation", tontineCombo.Text);
                    //Envoyer();
                    if (PubCon.testlog == 1)
                    {
                        if (UserSession.GetInstance().Etat == "Bloquer")
                        {
                            MessageBox.Show("Vous n'etes pas autorisez à vous connecter veuillez contacter un administrateur", "Stop", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                        }
                        else
                        {
                            MessageBox.Show("La connection a reussie !!!", "Message Serveur...", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            this.Close();
                            Principale_Form frm = new Principale_Form();
                            frm.ChargerUser(new UC_Home());
                        }

                        //frm.Show();
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #5
0
 public void FundForm1(Principale_Form form1)
 {
     this.form1 = form1;
 }
예제 #6
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            Principale_Form fr = new Principale_Form();

            fr.Refresh();
        }
예제 #7
0
 void Dispose(Principale_Form fr)
 {
     fr.Dispose();
     //this.Dispose();
 }