Esempio n. 1
0
        public VMOptions(VMMainWindow vmMainWindow)
        {
            this.parentWindow = vmMainWindow;

            configManager = new ConfigManager();
            config        = configManager.Read();

            ValidateCommand = new UserCommand(ValidateCredentials);
        }
Esempio n. 2
0
        public VMTodoList(VMMainWindow vmMainWindow)
        {
            this.parentWindow = vmMainWindow;

            TodoList        = new ObservableCollection <VMHabiticaTodo>();
            FetchCommand    = new UserCommand(new Action <object>(FetchTodos));
            CreateCommand   = new UserCommand(new Action <object>(CreateNewTodo));
            DeleteCommand   = new UserCommand(new Action <object>(DeleteTodo));
            SaveCommand     = new UserCommand(new Action <object>(SaveTodo));
            LoadCommand     = new UserCommand(new Action <object>(LoadTodo));
            CheckOffCommand = new UserCommand(new Action <object>(ChangeTodoCompletionStatus));

            FetchTodos(null);
        }