Esempio n. 1
0
        void ReleaseDesignerOutlets()
        {
            if (btnNotificacionesCalendario != null)
            {
                btnNotificacionesCalendario.Dispose();
                btnNotificacionesCalendario = null;
            }

            if (btnNotificacionesIntervalo != null)
            {
                btnNotificacionesIntervalo.Dispose();
                btnNotificacionesIntervalo = null;
            }

            if (btnNotificacionesRespuesta != null)
            {
                btnNotificacionesRespuesta.Dispose();
                btnNotificacionesRespuesta = null;
            }

            if (Calendario != null)
            {
                Calendario.Dispose();
                Calendario = null;
            }

            if (lblRespuesta != null)
            {
                lblRespuesta.Dispose();
                lblRespuesta = null;
            }
        }
Esempio n. 2
0
 private void bt_profile_Click(object sender, EventArgs e)
 {
     panel_selected_window.Height = bt_profile.Height;
     panel_selected_window.Top    = bt_profile.Top;
     if (profile != null)
     {
         profile.Dispose();                  //no overload the memory
     }
     profile      = new Perfil_usuario();
     profile.Dock = DockStyle.Fill;
     //Cerrar todo lo demas
     help.Visible     = false;
     calendar.Visible = false;
     cb.Visible       = false;
     calendar.Dispose();
     //mostrar el usercontrol
     profile.Visible = true;
     panel_principal.Controls.Add(profile);
 }