Пример #1
0
        public Inicio()
        {
            InitializeComponent();

            ShowProgress = new Lfx.Types.ShowProgressDelegate(ShowProgressRoutine);
            Lbl.Notificaciones.Administrador.Principal = new Lbl.Notificaciones.Administrador();
            //Lbl.Notificaciones.Administrador.Principal.Iniciar();
            // Inicio el administrador de notificaciones en un nuevo thread
            System.Threading.ThreadStart ParamInicio = delegate { Lbl.Notificaciones.Administrador.Principal.Iniciar(); };
            this.AdminNotif = new System.Threading.Thread(ParamInicio);
            this.AdminNotif.SetApartmentState(System.Threading.ApartmentState.STA);
            this.AdminNotif.Start();
        }
Пример #2
0
                public Inicio()
                {
                        InitializeComponent();

                        ShowProgress = new Lfx.Types.ShowProgressDelegate(ShowProgressRoutine);

                        Lbl.Notificaciones.Administrador.Principal = new Lbl.Notificaciones.Administrador();
                        //Lbl.Notificaciones.Administrador.Principal.Iniciar();
                        // Inicio el administrador de notificaciones en un nuevo thread
                        System.Threading.ThreadStart ParamInicio = delegate { Lbl.Notificaciones.Administrador.Principal.Iniciar(); };
                        this.AdminNotif = new System.Threading.Thread(ParamInicio);
                        this.AdminNotif.SetApartmentState(System.Threading.ApartmentState.STA);
                        this.AdminNotif.Start();
                }