protected virtual void viewRequested(object sender, ViewRequestEventArgs e)
 {
     if (e.RequestCode == ViewModelBase.CLOSE)
     {
         Close();
     }
 }
Exemple #2
0
        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;
            }
        }