public NotesVM() { NewNotebookCommand = new NewNotebookCommand(this); NewNoteCommand = new NewNoteCommand(this); ExitCommand = new ExitCommand(); BeginEditCommand = new BeginEditCommand(this); HasEditedCommand = new HasEditedCommand(this); Notebooks = new ObservableCollection <Notebook>(); Notes = new ObservableCollection <Note>(); ReadNotebooks(); }
public NotesVM() { IsEditing = false; context = new NoteAppContext(); NewNotebookCmd = new NewNotebookCommand(this); NewNoteCmd = new NewNoteCommand(this); BeginEditCmd = new BeginEditCommand(this); HasEditedCmd = new HasEditedCommand(this); Notebooks = new ObservableCollection <Notebook>(); Notes = new ObservableCollection <Note>(); ReadNotebooks(); ReadNotes(); }
public NotesVM() { IsEditing = false; NewNotebookCommand = new NewNotebookCommand(this); NewNoteCommand = new NewNoteCommand(this); beginEditeCommand = new BeginEditeCommand(this); HasEditedCommand = new HasEditedCommand(this); Notebooks = new ObservableCollection <Notebook>(); Notes = new ObservableCollection <Note>(); ReadNotebooks(); ReadNotes(); }
public NotesViewModel() { IsEditing = false; NewNotebookCommand = new NewNotebookCommand(this); NewNoteCommand = new NewNoteCommand(this); BeginEditCommand = new BeginEditCommand(this); HasEditedCommand = new HasEditedCommand(this); // Init the variables Notebooks = new ObservableCollection <Notebook>(); Notes = new ObservableCollection <Note>(); // Init the different stuff. ReadNotebooks(); ReadNotes(); }
public NotesVM() { IsEditing = false; //ContextMenu boolean controller NewNotebookCommand = new NewNotebookCommand(this); NewNoteCommand = new NewNoteCommand(this); BeginEditCommand = new BeginEditCommand(this); HasEditedCommand = new HasEditedCommand(this); //Inicializamos listas Notebooks = new ObservableCollection <NotebookModel>(); Notes = new ObservableCollection <NoteModel>(); //Y leemos nada más empezar de la bbdd ReadNotebooks(); ReadNotes(); }
public NotesViewModel() { IsEditedNotebook = false; NewNotebookCommand = new NewNotebookCommand(this); NewNoteCommand = new NewNoteCommand(this); beginEditCommand = new BeginEditCommand(this); hasEditedCommand = new HasEditedCommand(this); deleteNotebookCommand = new DeleteNotebookCommand(this); deleteNoteCommand = new DeleteNoteCommand(this); Notebooks = new ObservableCollection <Notebook>(); Notes = new ObservableCollection <Note>(); ReadNotebooks(); ReadNote(); }
public NotesVM() { // create tables in db as first task DatabaseHelper.CreateTables <Notebook>(); DatabaseHelper.CreateTables <Note>(); NewNotebookCommand = new NewNotebookCommand(this); NewNoteCommand = new NewNoteCommand(this); BeginEditCommand = new BeginEditCommand(this); HasEditedCommand = new HasEditedCommand(this); CancelNotebookEditCommand = new CancelNotebookEditCommand(); HasEditedNoteCommand = new HasEditedNoteCommand(this); CancelNoteEditCommand = new CancelNoteEditCommand(); Notebooks = new ObservableCollection <Notebook>(); Notes = new ObservableCollection <Note>(); }
public NotesWindowVM() { IsEditing = false; NewNoteBookCommand = new NewNoteBookCommand(this); NewNoteCommand = new NewNoteCommand(this); CloseProgramCommand = new CloseProgramCommand(this); BeginEditCommand = new BeginEditCommand(this); HasEditedCommand = new HasEditedCommand(this); DeleteNoteBookCommand = new DeleteNoteBookCommand(this); DeleteNoteCommand = new DeleteNoteCommand(this); Notebooks = new ObservableCollection <NoteBook>(); Notes = new ObservableCollection <Note>(); SelectedNote = new Note(); ReadNoteBooks(); ReadNotes(); }
public MainViewModel() { ExitCommand = new ExitCommand(); NoteBookCommand = new NoteBookCommand(this); NoteCommand = new NoteCommand(this); NoteBookCollection = new ObservableCollection <NoteBook>(); NotesCollection = new ObservableCollection <Notes>(); //LoginVM loginvm = new LoginVM(); LoginVM.HasLoggedIn += Loginvm_HasLoggedIn; IsEditing = false; IsEditingNote = false; StartEditingCommand = new StartEditingCommand(this); HasEditedCommand = new HasEditedCommand(this); DeleteNoteCommand = new DeleteNoteCommand(this); DeleteNoteBookCommand = new DeleteNoteBookCommand(this); StartEditingNoteCommand = new StartEditingNoteCommand(this); HasEditedNoteCommand = new HasEditedNoteCommand(this); //getNotes(); }