private void materialTabControl1_Selected(object sender, TabControlEventArgs e)
        {
            int indice = e.TabPageIndex;

            switch (indice)
            {
            case (int)eOpcionesMenu.Servicios:

                break;

            case (int)eOpcionesMenu.Citas:
                frmNuevaCita frm = new frmNuevaCita();
                frm.ShowDialog();
                break;

            case (int)eOpcionesMenu.Catalogos:

                frmCatalogos frmCat = new frmCatalogos();
                frmCat.ShowDialog();
                //this.Hide();
                break;

            case (int)eOpcionesMenu.Salir:
                DialogResult resp = MessageBox.Show("Confirma salir del sistema?", "Salir", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
                if (resp == DialogResult.Yes)
                {
                    Application.Exit();
                }
                materialTabControl1.SelectedIndex = 0;
                break;
            }
        }
        private void Principal_Load(object sender, EventArgs e)
        {
            this.Top  = 0;
            this.Left = 0;
            this.Size = new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height - 50);


            frmCatalogos myForm = new frmCatalogos();

            myForm.TopLevel        = false;
            myForm.AutoScroll      = true;
            this.panel2.AutoScroll = true;
            this.panel2.Controls.Add(myForm);
            myForm.Show();
        }
 private void btnCatalogos_Click(object sender, EventArgs e)
 {
     try
     {
         this.Visible = false;
         frmCatalogos catalogos = new frmCatalogos();
         catalogos.ShowDialog();
         catalogos.Dispose();
         this.Visible = true;
     }
     catch (Exception ex)
     {
         this.Visible = true;
         MessageBox.Show(Comun.MensajeError, Comun.Sistema, MessageBoxButtons.OK, MessageBoxIcon.Error);
         LogError.AddExcFileTxt(ex, "frmMenuInicio ~ btnCatalogos_Click");
     }
 }