Example #1
0
 public Form_Main()
 {
     InitializeComponent();
     SidePanel.Height     = button6.Height;
     SidePanel.Top        = button6.Top;
     SidePanel2.Height    = button6.Height;
     SidePanel2.Top       = button6.Top;
     SidePanel2.BackColor = Color.FromArgb(100, 96, 10, 10);
     graph1.BringToFront();
     SidePanel.BringToFront();
     credits1.Visible = false;
     credits1.SendToBack();
 }
Example #2
0
 public Form1()
 {
     InitializeComponent();
     SidePanel.Height = button1.Height;
     SidePanel.Top    = button1.Top;
     SidePanel.BringToFront();
     login2.BringToFront();
     textUsername.BringToFront();
     textPasswors.BringToFront();
     btnIniciaSesion.BringToFront();
     alert.BringToFront();
     alert.Hide();
     Alert3.Hide();
 }
Example #3
0
        private void BtnRegistroHabitaciones_Click(object sender, EventArgs e)
        {
            SidePanel.Height = button10.Height;
            SidePanel.Top    = button10.Top;
            SidePanel.BringToFront();

            if (!userControlInicio1.Controls.Contains(UserControlHabitaciones.Instance))
            {
                userControlInicio1.Controls.Add(UserControlHabitaciones.Instance);
                UserControlHabitaciones.Instance.Dock = DockStyle.Fill;
                UserControlHabitaciones.Instance.BringToFront();
            }
            else
            {
                UserControlHabitaciones.Instance.BringToFront();
            }
        }