예제 #1
0
 public DictionaryTypeViewModel(DictionaryTypeEditWindow dictionaryEditWindow, DictionaryType SelectedDictionaryType)
 {
     this.SelectedDictionaryType           = SelectedDictionaryType;
     SelectedDictionaryType.IsSessionGroup = true;
     this.SourceWindow = dictionaryEditWindow;
     this.SaveCommand  = new RelayCommand(SaveDictionaryType, CanExecute);
     this._contextDal  = new DictionaryTypeDAL();
 }
예제 #2
0
        private void EditDictionaryType(object param)
        {
            DictionaryTypeEditWindow target = new DictionaryTypeEditWindow((DictionaryType)((DataGrid)param).SelectedItem)
            {
                Owner = this.SourceWindow
            };

            SwitchWindows(target, true);
            this.DictionaryList = ReloadDictionaryList();
        }
예제 #3
0
        private void CreateDictionaryType()
        {
            DictionaryType           dictionaryType = new DictionaryType();
            DictionaryTypeEditWindow target         = new DictionaryTypeEditWindow(dictionaryType)
            {
                Owner = this.SourceWindow
            };

            SwitchWindows(target, true);
            this.DictionaryTypeList = ReloadDictionaryTypeList();
        }