Exemplo n.º 1
0
        public FormInfo(Form owner, string message, DoWorkEventHandler doWork, RunWorkerCompletedEventHandler runWorkerCompleted = null, object argument = null)
        {
            InitializeComponent();
            Owner       = owner;
            InfoMessage = message;
            _backGroundWorkerServicer         = new BackgroundWorkerServicer();
            _backGroundWorkerServicer.DoWork += doWork;
            if (runWorkerCompleted != null)
            {
                _backGroundWorkerServicer.RunWorkerCompleted += runWorkerCompleted;
            }

            Argument = argument;
        }
Exemplo n.º 2
0
        public FormInfo(Form owner, string message, DoWorkEventHandler doWork, RunWorkerCompletedEventHandler runWorkerCompleted = null, object argument = null)
        {
            InitializeComponent();
            Owner = owner;
            InfoMessage = message;
            _backGroundWorkerServicer = new BackgroundWorkerServicer();
            _backGroundWorkerServicer.DoWork += doWork;
            if (runWorkerCompleted != null)
            {
                _backGroundWorkerServicer.RunWorkerCompleted += runWorkerCompleted;
            }

            Argument = argument;
        }