public UserViewModel() { IDAO dao = (IDAO)LateBinding.GetDAOConstructor().Invoke(new object[] { }); IUser user = dao.CreateNewUser(); _user = user; }
public WordViewModel() { IDAO dao = (IDAO)LateBinding.GetDAOConstructor().Invoke(new object[] { }); IWord word = dao.CreateNewWord(); _word = word; }
public DictionaryViewModel() { IDAO dao = (IDAO)LateBinding.GetDAOConstructor().Invoke(new object[] { }); IDictionary dictionary = dao.CreateNewDictionary(); _dictionary = dictionary; }
public StatisticsShowViewModel() { #if DEBUG if (DesignerProperties.GetIsInDesignMode(new DependencyObject())) { return; } #endif _dao = (IDAO)LateBinding.GetDAOConstructor().Invoke(new object[] { }); _correctPercentage = ""; _incorrectPercentage = ""; }
public WordInsertViewModel() { #if DEBUG if (DesignerProperties.GetIsInDesignMode(new DependencyObject())) { return; } #endif InputNotEmpty = false; _dao = (IDAO)LateBinding.GetDAOConstructor().Invoke(new object[] { }); NewWord = new WordViewModel(); _saveNewWordCommand = new RelayCommand(param => this.SaveWord()); }
public UserListViewModel() { #if DEBUG if (DesignerProperties.GetIsInDesignMode(new DependencyObject())) { return; } #endif _users = new ObservableCollection <UserViewModel>(); _dao = (IDAO)LateBinding.GetDAOConstructor().Invoke(new object[] { }); GetAllUsers(); EditedUser = new UserViewModel(); _saveNewUserCommand = new RelayCommand(param => this.SaveUser()); }
public DictionaryListViewModel() { #if DEBUG if (DesignerProperties.GetIsInDesignMode(new DependencyObject())) { return; } #endif _wordInsertViewModel = new WordInsertViewModel(); _dictionaries = new ObservableCollection <DictionaryViewModel>(); _dao = (IDAO)LateBinding.GetDAOConstructor().Invoke(new object[] { }); GetAllDictionaries(); NewDictionary = new DictionaryViewModel(); _saveNewDictionaryCommand = new RelayCommand(param => this.SaveDictionary()); }
public WordShowViewModel() { #if DEBUG if (DesignerProperties.GetIsInDesignMode(new DependencyObject())) { return; } #endif _custom = false; _customPercentage = 0; _confirmInfo = ""; _currentWordIndex = null; _dao = (IDAO)LateBinding.GetDAOConstructor().Invoke(new object[] { }); _words = new List <WordViewModel>(); _currentWord = new WordViewModel(); _startStudyCommand = new RelayCommand(param => this.StartStudy()); _confirmWordCommand = new RelayCommand(param => this.ConfirmWord()); }