Esempio n. 1
0
 public override void Inicializar(params object[] args)
 {
     base.Inicializar(args);
     ctrl = new CtrlAmbiente();
     OperacaoAtual = Operacao.Navegar;
 }
Esempio n. 2
0
        private void FrmTesteComandos_Load(object sender, EventArgs e)
        {
            ctrl = new CtrlAmbiente();
            dtgAmbiente.DataSource = ctrl.Navegar();

            btnFechar.PerformClick();
            worker = new BackgroundWorker();
            worker.WorkerReportsProgress = false;
            worker.WorkerSupportsCancellation = true;
            worker.DoWork += new DoWorkEventHandler(DefineExecucao);
            worker.ProgressChanged += new ProgressChangedEventHandler(OnWorkerProgresso);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(FinalizaComando);
        }