protected override void ViewCore() { // Open window NewItemWindow window = new NewItemWindow(SelectedNote); window.Show(); }
protected override void NewCore() { // Open new window NewItemWindow window = new NewItemWindow(); window.Show(); }
protected override void NewCore() { // Open new window //TODO CalendarPlugin: Keep this or replace it by detailview? //TODO CalendarPlugin: Set the window on the plugin NewItemWindow window = new NewItemWindow(); window.Show(); }
private void ViewModel_OpenItem(object sender, EventArgs e) { _newItemViewModel = new NewItemViewModel(_service); _newItemViewModel.MessageApplication += ViewModel_MessageApplication; _newItemViewModel.BackToMain += ViewModel_Back; _newItemView = new NewItemWindow { DataContext = _newItemViewModel }; _newItemView.Show(); _view.Close(); }