private void OnCancel(object parameter) { Log.Instance.LogInfo(string.Format("NotesViewModel.OnCancel {0}", parameter)); NotesDialog w = parameter as NotesDialog; if (w != null) { w.Close(); } }
private void OnOK(object parameter) { Log.Instance.LogInfo(string.Format("NotesViewModel.OnOK {0}", parameter)); NotesDialog w = parameter as NotesDialog; if (w != null) { w.Close(); } OnOKAction(Index, w.textBox.Text); }