public override void Inicializar(params object[] args) { base.Inicializar(args); ctrl = new CtrlAmbiente(); OperacaoAtual = Operacao.Navegar; }
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); }