protected virtual void viewRequested(object sender, ViewRequestEventArgs e) { if (e.RequestCode == ViewModelBase.CLOSE) { Close(); } }
protected override void viewRequested(object sender, ViewRequestEventArgs e) { switch (e.RequestCode) { case ControlarPontoViewModel.EDITAR_PONTO: var editEvent = e as EditarPontoEventArgs; PontoWindowFactory.criarPontoDoFuncionarioWindow(editEvent.DiaTrabalho, ViewModel.unitOfWork).ShowDialog(); break; default: base.viewRequested(sender, e); break; } }