Пример #1
0
        private async void SaveNoteDB()
        {
            var model = new DatabaseOpenSaveViewModel(_app, _db);

            if (await _app.ShowDialog("Open Note from DB", new DatabaseOpenSave(), DialogButtons.OkCancel, true, model))
            {
                model.SaveToNote(View.EditorText);
            }
        }
Пример #2
0
        private async void OpenNoteDB(bool modified)
        {
            await SaveModified(modified);

            var model = new DatabaseOpenSaveViewModel(_app, _db);

            if (await _app.ShowDialog("Open Note from DB", new DatabaseOpenSave(), DialogButtons.OkCancel, true, model))
            {
                View.EditorText = model.OpenNote();
            }
        }