private void EditSelected() { Gtk.ITreeNode[] selected = selection.SelectedNodes; if (selected.Length != 1) { throw new Exception ("Selection must be 1"); } PatientListNode node = (PatientListNode) selected[0]; PatientEditorWin win = new PatientEditorWin (PatientEditorWin.TYPE.EDIT, config, node.Data); win.Show (); }
protected void OnPatientsNewActivated(object sender, EventArgs e) { PatientEditorWin win = new PatientEditorWin (PatientEditorWin.TYPE.NEW, config); win.TransientFor = this; win.Show (); }