Exemplo n.º 1
0
        public frmHistorialConsultas()
        {
            InitializeComponent();

            try
            {
                VistaConstants.SetWindowTheme(lstGabineteConsulta.Handle, "explorer", null); //Explorer style
                VistaConstants.SendMessage(lstGabineteConsulta.Handle, VistaConstants.LVM_SETEXTENDEDLISTVIEWSTYLE, VistaConstants.LVS_EX_DOUBLEBUFFER, VistaConstants.LVS_EX_DOUBLEBUFFER);

                VistaConstants.SetWindowTheme(lstExamenesConsulta.Handle, "explorer", null); //Explorer style
                VistaConstants.SendMessage(lstExamenesConsulta.Handle, VistaConstants.LVM_SETEXTENDEDLISTVIEWSTYLE, VistaConstants.LVS_EX_DOUBLEBUFFER, VistaConstants.LVS_EX_DOUBLEBUFFER);
            }
            catch { }

            this.Region = Shape.RoundedRegion(this.Size, 10, Shape.Corner.None);

            this.Left = ((Screen.PrimaryScreen.WorkingArea.Width - this.Width) / 2);

            int top = 0;

            top = Screen.PrimaryScreen.WorkingArea.Height - this.Height - Program.oMDI.statusStrip1.Height - Program.oFrmDock.Height + 15;

            if (top < 0)
            {
                top = 0;
            }

            this.Top = top;

            LlenaComboMetodosAnticonceptivos();
        }
Exemplo n.º 2
0
        public frmParamBusquedaConsulta()
        {
            InitializeComponent();
            Utilidades.EstablecerFuentesEnFormulario(this, FormType.Mantenimiento);

            try
            {
                VistaConstants.SetWindowTheme(lstDiagnosticos.Handle, "explorer", null); //Explorer style
                VistaConstants.SendMessage(lstDiagnosticos.Handle, VistaConstants.LVM_SETEXTENDEDLISTVIEWSTYLE, VistaConstants.LVS_EX_DOUBLEBUFFER, VistaConstants.LVS_EX_DOUBLEBUFFER);
            }
            catch { }
        }
Exemplo n.º 3
0
        private void frmGabinete_Load(object sender, EventArgs e)
        {
            LlenaComboCategorias();

            oArregloPermisos = oCPermisosEspeciales.LeePermisos(MDIPrincipal.RolUsuario.Trim(), this.Tag.ToString().Trim());

            tobCancelar_Click(sender, e);

            try
            {
                VistaConstants.SetWindowTheme(lstGabinete.Handle, "explorer", null); //Explorer style
                VistaConstants.SendMessage(lstGabinete.Handle, VistaConstants.LVM_SETEXTENDEDLISTVIEWSTYLE, VistaConstants.LVS_EX_DOUBLEBUFFER, VistaConstants.LVS_EX_DOUBLEBUFFER);
            }
            catch { }
        }
Exemplo n.º 4
0
        public frmEmail()
        {
            InitializeComponent();

            try
            {
                VistaConstants.SetWindowTheme(lstContactos.Handle, "explorer", null); //Explorer style
                VistaConstants.SendMessage(lstContactos.Handle, VistaConstants.LVM_SETEXTENDEDLISTVIEWSTYLE, VistaConstants.LVS_EX_DOUBLEBUFFER, VistaConstants.LVS_EX_DOUBLEBUFFER);

                VistaConstants.SetWindowTheme(lstAttachments.Handle, "explorer", null); //Explorer style
                VistaConstants.SendMessage(lstAttachments.Handle, VistaConstants.LVM_SETEXTENDEDLISTVIEWSTYLE, VistaConstants.LVS_EX_DOUBLEBUFFER, VistaConstants.LVS_EX_DOUBLEBUFFER);
            }
            catch { }

            SetStyles();

            this.Region = Shape.RoundedRegion(this.Size, 10, Shape.Corner.None);
        }