public NoteListViewModel() { Tabs = Utilities.SavedData.Open(); Utilities.SavedData.Save(Tabs); NewNote = new Commands.NewNoteCommand(this); TextSize = TEXT_SIZE_DEFAULT; CurrentTab = 0; SelectedIndex = -1; TabsFocused = true; // Unused _dialogService = new MvvmDialogs.DialogService(null, new Utilities.Locator(), null); ScrollUp = new Commands.ScrollCommand(verticalScroll, -1); ScrollDown = new Commands.ScrollCommand(verticalScroll, 1); ScrollLeft = new Commands.ScrollCommand(horizontalScroll, -1); ScrollRight = new Commands.ScrollCommand(horizontalScroll, 1); ResetFocus = new Commands.SetPropertyCommand(setFocus, true); RemoveFocus = new Commands.SetPropertyCommand(setFocus, false); DeleteNote = new Commands.GenericCommand(deleteNote); NewTab = new Commands.GenericCommand(createTab); DeleteTab = new Commands.GenericCommand(deleteTab); OpenHelp = new Commands.GenericCommand(openHelp); Reverse = new Commands.GenericCommand(reverseNotes); Exit = new Commands.CloseCommand(exitApplication); EditNote = new Commands.GenericCommand(openEdit); ChangeTextSize = new Commands.BoolCommand(textSize); }
public HelpViewModel(IDialogService dialogService) { _dialogService = dialogService; Finish = new Commands.GenericCommand(finish); }