Ejemplo n.º 1
0
 public static void showAnimation(Control cs, BunifuAnimatorNS.BunifuTransition bunifuTransition1)
 {
     bunifuTransition1.HideSync(cs, true);
     //bunifuTransition1.HideSync(cs, false, BunifuAnimatorNS.Animation.HorizBlind);
     //Thread.Sleep(2000);
     bunifuTransition1.ShowSync(cs, true);
 }
Ejemplo n.º 2
0
        private void HideStartMenu()
        {
            var Animation = new BunifuAnimatorNS.BunifuTransition
            {
                AnimationType = BunifuAnimatorNS.AnimationType.Transparent,
                Interval      = 6
            };

            Animation.HideSync(startMenu);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// It hides the given UI control
 /// </summary>
 /// <param name="control">UI Control Object</param>
 public static void HideSync(Control control)
 {
     Animator.HideSync(control);
 }
Ejemplo n.º 4
0
 public void Paneles(Panel Receptor, BunifuAnimatorNS.BunifuTransition Animacion, Label Receptor_lbl)
 {
     if (tabControl1.SelectedIndex == 0)
     {
         Metodos.Llenar_panel(Receptor, new Bienvenida());
         if (Receptor_lbl.Visible == true)
         {
             Animacion.HideSync(Receptor_lbl);
             Receptor_lbl.Text = "Pantalla de bienvenida";
             Animacion.ShowSync(Receptor_lbl);
         }
         else
         {
             Animacion.ShowSync(Receptor_lbl);
         }
     }
     else if (tabControl1.SelectedIndex == 1)
     {
         Metodos.Llenar_panel(Receptor, new Listado_polizas());
         if (Receptor_lbl.Visible == true)
         {
             Animacion.HideSync(Receptor_lbl);
             Receptor_lbl.Text = "Polizas";
             Animacion.ShowSync(Receptor_lbl);
         }
         else
         {
             Animacion.ShowSync(Receptor_lbl);
         }
     }
     else if (tabControl1.SelectedIndex == 2)
     {
         Metodos.Llenar_panel(Receptor, new Listado_tomadores());
         if (Receptor_lbl.Visible == true)
         {
             Animacion.HideSync(Receptor_lbl);
             Receptor_lbl.Text = "Tomadores";
             Animacion.ShowSync(Receptor_lbl);
         }
         else
         {
             Animacion.ShowSync(Receptor_lbl);
         }
     }
     else if (tabControl1.SelectedIndex == 3)
     {
         Metodos.Llenar_panel(Receptor, new Listado_beneficiarios());
         if (Receptor_lbl.Visible == true)
         {
             Animacion.HideSync(Receptor_lbl);
             Receptor_lbl.Text = "Beneficiarios";
             Animacion.ShowSync(Receptor_lbl);
         }
         else
         {
             Animacion.ShowSync(Receptor_lbl);
         }
     }
     else if (tabControl1.SelectedIndex == 4)
     {
         Metodos.Llenar_panel(Receptor, new Listados_vehiculos());
         if (Receptor_lbl.Visible == true)
         {
             Animacion.HideSync(Receptor_lbl);
             Receptor_lbl.Text = "Vehiculos";
             Animacion.ShowSync(Receptor_lbl);
         }
         else
         {
             Animacion.ShowSync(Receptor_lbl);
         }
     }
     else if (tabControl1.SelectedIndex == 5)
     {
         Metodos.Llenar_panel(Receptor, new Listado_vigencias_polizas());
         if (Receptor_lbl.Visible == true)
         {
             Animacion.HideSync(Receptor_lbl);
             Receptor_lbl.Text = "Vigencias polizas";
             Animacion.ShowSync(Receptor_lbl);
         }
         else
         {
             Animacion.ShowSync(Receptor_lbl);
         }
     }
     else if (tabControl1.SelectedIndex == 6)
     {
         Metodos.Llenar_panel(Receptor, new Listado_vigencias_Soat());
         if (Receptor_lbl.Visible == true)
         {
             Animacion.HideSync(Receptor_lbl);
             Receptor_lbl.Text = "Vigencias SOAT";
             Animacion.ShowSync(Receptor_lbl);
         }
         else
         {
             Animacion.ShowSync(Receptor_lbl);
         }
     }
 }