Ejemplo n.º 1
0
        private void EditStudent(object obj)
        {
            AddOrEditWindow addOrEditWindow = new AddOrEditWindow();

            addOrEditWindow.Show();
            var addOrEditViewModel = (addOrEditWindow.DataContext as AddOrEditViewModel);

            addOrEditViewModel.CurrentOperatorEntity = SelectOperatorEntity;
            addOrEditViewModel.IsAdd       = false;
            addOrEditViewModel.OperatorDal = OperatorDal;
        }
Ejemplo n.º 2
0
        private void AddStuddent(object obj)
        {
            AddOrEditWindow addOrEditWindow = new AddOrEditWindow();

            addOrEditWindow.Show();
            var addOrEditViewModel = (addOrEditWindow.DataContext as AddOrEditViewModel);

            addOrEditViewModel.CurrentOperatorEntity = new Operator();
            addOrEditViewModel.IsAdd       = true;
            addOrEditViewModel.OperatorDal = OperatorDal;
        }