protected virtual void OnAddActionActivated(object sender, System.EventArgs e) { var pair = new PairNode ("", ""); var dlg = new EditPairDialog (); dlg.De = pair.De; dlg.En = pair.En; if (dlg.Run () == (int)ResponseType.Ok) { pair.En = dlg.En; pair.De = dlg.De; nodeview2.NodeStore.AddNode (pair); } dlg.Destroy (); }
protected virtual void OnEditActionActivated(object sender, System.EventArgs e) { var pair = (PairNode)nodeview2.NodeSelection.SelectedNode; if (pair != null) { var dlg = new EditPairDialog (); dlg.De = pair.De; dlg.En = pair.En; if (dlg.Run () == (int)ResponseType.Ok) { pair.En = dlg.En; pair.De = dlg.De; } dlg.Destroy (); } }
protected virtual void OnAddActionActivated(object sender, System.EventArgs e) { var pair = new PairNode("", ""); var dlg = new EditPairDialog(); dlg.De = pair.De; dlg.En = pair.En; if (dlg.Run() == (int)ResponseType.Ok) { pair.En = dlg.En; pair.De = dlg.De; nodeview2.NodeStore.AddNode(pair); } dlg.Destroy(); }
protected virtual void OnEditActionActivated(object sender, System.EventArgs e) { var pair = (PairNode)nodeview2.NodeSelection.SelectedNode; if (pair != null) { var dlg = new EditPairDialog(); dlg.De = pair.De; dlg.En = pair.En; if (dlg.Run() == (int)ResponseType.Ok) { pair.En = dlg.En; pair.De = dlg.De; } dlg.Destroy(); } }