Exemplo n.º 1
0
        //Charge le datagrid avec tous les livres de la bd
        private void btnAct_Click(object sender, EventArgs e)
        {
            //On masque le panel de notification
            Transition1.HideSync(notifL);
            notifL.Visible = false;

            chargerdgLivre();
        }
Exemplo n.º 2
0
 private void FileB_Click(object sender, EventArgs e)
 {
     if (!fileUC1.Visible)
     {
         HideAllPanels();
         Transition1.ShowSync(fileUC1, false, BunifuAnimatorNS.Animation.HorizSlide);
     }
     else
     {
         Transition1.HideSync(fileUC1, false, BunifuAnimatorNS.Animation.HorizSlide);
     }
 }
Exemplo n.º 3
0
 private void EraserB_Click_1(object sender, EventArgs e)
 {
     Test.CurrentBrush = BrushType.Eraser;
     if (!ESize.Visible)
     {
         HideAllPanels();
         Transition1.ShowSync(ESize, false, BunifuAnimatorNS.Animation.HorizSlide);
     }
     else
     {
         Transition1.HideSync(ESize, false, BunifuAnimatorNS.Animation.HorizSlide);
     }
 }
Exemplo n.º 4
0
 private void PenB_Click(object sender, EventArgs e)
 {
     if (!penUC1.Visible)
     {
         HideAllPanels();
         Transition1.ShowSync(penUC1, false, BunifuAnimatorNS.Animation.HorizSlide);
         CurrentBrush = PenBrush;
         color        = PenColor;
     }
     else
     {
         Transition1.HideSync(penUC1, false, BunifuAnimatorNS.Animation.HorizSlide);
     }
 }
Exemplo n.º 5
0
 private void ShapesB_Click(object sender, EventArgs e)
 {
     if (!shapesUC1.Visible)
     {
         HideAllPanels();
         Transition1.ShowSync(shapesUC1, false, BunifuAnimatorNS.Animation.HorizSlide);
         CurrentShape = shapeB;
         color        = ShapesColor;
         CurrentBrush = BrushType.Shape;
     }
     else
     {
         Transition1.HideSync(shapesUC1, false, BunifuAnimatorNS.Animation.HorizSlide);
     }
 }
Exemplo n.º 6
0
        private void gunaPictureBox1_Click(object sender, EventArgs e)
        {
            gunaPictureBox1.Visible      = false;
            Transition1.MaxAnimationTime = 2500;
            Transition1.TimeStep         = 0.1f;
            Transition1.HideSync(panel2);
            panel2.Controls.Clear();
            ControlDangNhap1 hd = new ControlDangNhap1();



            Transition1.AnimationType = Guna.UI.Animation.AnimationType.VertSlide;
            Transition1.TimeStep      = 0.01f;
            panel2.Controls.Add(hd);
            Transition1.ShowSync(panel2);
        }
Exemplo n.º 7
0
        private void AjLiv_Click(object sender, EventArgs e)
        {
            GestionnaireConnexion connect = new GestionnaireConnexion();
            Livre L = new Livre(AISBN.Text, titreL.Text, AAuteur.Text, AMaisonEdit.Text, ADatePub.Text);

            connect.InsertLivre(L);

            Transition1.HideSync(panelAjout);
            panelAjout.Visible = false;

            //On rend le premier bouton d'ajout visibe
            insLivre.Visible = true;

            //On fait réapparaitre le datagrid
            Transition1.ShowSync(dgLivre);
            dgLivre.Visible = true;
        }