public FileModels(NotepadComponent notepad) { Notepad = notepad; New = new NotepadCommands(NewFile); Save = new NotepadCommands(SaveFile, () => !Notepad.isEmpty); SaveAs = new NotepadCommands(SaveFileAs); Open = new NotepadCommands(OpenFile); }
public EditorViewModel(NotepadComponent document) { Document = document; }
public HomePageModel() { _document = new NotepadComponent(); File = new FileModels(_document); Editor = new EditorViewModel(_document); }