public ProfessorViewModel() { OnAdicionarProfessorCMD = new OnAdicionarProfessorCMD(this); OnDeleteProfessorCMD = new OnDeleteProfessorCMD(this); CopiaListaProfessor = new List <Professor>(); Carregar(); }
public ProfessorViewModel() { OnSairCMD = new Command(OnSair); OnNovoCMD = new Command(OnNovo); OnAdicionarProfessorCMD = new OnAdicionarProfessorCMD(this); OnEditarProfessorCMD = new OnEditarProfessorCMD(this); OnDeleteProfessorCMD = new OnDeleteProfessorCMD(this); ProfessorList = ProfessorRepository.GetProfessoresSqlAzureAsync().Result; }
public ProfessorViewModel() { OnAdicionarProfessorCMD = new OnAdicionarProfessorCMD(this); OnEditarProfessorCMD = new OnEditarProfessorCMD(this); OnDeleteProfessorCMD = new OnDeleteProfessorCMD(this); OnSairCMD = new Command(OnSair); OnNovoCMD = new Command(OnNovo); CopiaListaProfessores = new List <Professor>(); }
public ProfessorViewModel() { AdicionarProfessorCMD = new OnAdicionarProfessorCMD(this); EditarProfessorCMD = new OnEditarProfessorCMD(this); DeleteProfessorCMD = new OnDeleteProfessorCMD(this); NovoCMD = new Command(OnNovo); CancelarCMD = new Command(OnCancelar); ListaProfessores = new List <Professor>(); }
public ProfessorViewModel() { //ProfessorRepository repository = ProfessorRepository.Instance; OnAdicionarProfessorCMD = new OnAdicionarProfessorCMD(this); OnEditarProfessorCMD = new OnEditarProfessorCMD(this); OnDeleteProfessorCMD = new OnDeleteProfessorCMD(this); OnSairCMD = new Command(OnSair); OnNovoCMD = new Command(OnNovo); CopiaListaProfessor = new List <Professor>(); Carregar(); }