예제 #1
0
        //--------------------Constructor
        public FrmPrincipal3()
        {
            InitializeComponent();

            CargarMetroComBoBox();
            metroComboBox1.SelectedIndex = 0;
            DeshabilitarDeMenuOpciones();
            MostrarUsuarioDeSesionEnMetroLabel();


            Func <CRReporteVacio> funcion = () => {
                FrmVisorReporteTonto tonto = new FrmVisorReporteTonto();
                tonto.Dispose();
                return(new CRReporteVacio());
            };

            tarea = Task.Run(funcion);
        }
        //-----------------constructor
        public FrmPrincipal()
        {
            InitializeComponent();
            metroTile1.UseSelectable  = false;
            metroTile2.UseSelectable  = false;
            metroTile9.UseSelectable  = false;
            metroTile13.UseSelectable = false;
            metroTile7.UseSelectable  = false;

            DeshabilitarDeMenuOpciones();

            Func <CRReporteVacio> funcion = () => {
                FrmVisorReporteTonto tonto = new FrmVisorReporteTonto();
                tonto.Dispose();
                return(new CRReporteVacio());
            };

            tarea = Task.Run(funcion);
        }