예제 #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);
 }
예제 #2
0
        private void HideStartMenu()
        {
            var Animation = new BunifuAnimatorNS.BunifuTransition
            {
                AnimationType = BunifuAnimatorNS.AnimationType.Transparent,
                Interval      = 6
            };

            Animation.HideSync(startMenu);
        }
예제 #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);
 }
예제 #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);
         }
     }
 }