void tree_AfterSelect(object sender, TreeEventArgs e) { if (EditInterfaceSelectionChanged != null) { EditInterfaceViewEventArgs evt = new EditInterfaceViewEventArgs((e.Node as EditInterfaceTreeNode).EditInterface); EditInterfaceSelectionChanged.Invoke(evt); } }
void tree_NodeMouseDoubleClick(object sender, TreeEventArgs e) { if (EditInterfaceSelectionEdit != null) { EditInterfaceViewEventArgs evt = new EditInterfaceViewEventArgs((e.Node as EditInterfaceTreeNode).EditInterface); EditInterfaceSelectionEdit.Invoke(evt); } }
void tree_BeforeSelect(object sender, TreeCancelEventArgs e) { if (EditInterfaceSelectionChanging != null && e.Node != null) { EditInterfaceViewEventArgs evt = new EditInterfaceViewEventArgs((e.Node as EditInterfaceTreeNode).EditInterface); EditInterfaceSelectionChanging.Invoke(evt); e.Cancel = evt.Cancel; } }
void treeView_EditInterfaceSelectionChanging(EditInterfaceViewEventArgs evt) { String error; if (evt.EditInterface != null && !evt.EditInterface.validate(out error)) { evt.Cancel = true; MessageBox.show(error, "Invalid Settings", MessageBoxStyle.IconError | MessageBoxStyle.Ok); } }
void treeView_EditInterfaceSelectionChanged(EditInterfaceViewEventArgs evt) { selectedEditInterface = evt.EditInterface; propEditor.EditInterface = selectedEditInterface; uiCallback.SelectedEditInterface = selectedEditInterface; }