示例#1
0
 void tree_AfterSelect(object sender, TreeEventArgs e)
 {
     if (EditInterfaceSelectionChanged != null)
     {
         EditInterfaceViewEventArgs evt = new EditInterfaceViewEventArgs((e.Node as EditInterfaceTreeNode).EditInterface);
         EditInterfaceSelectionChanged.Invoke(evt);
     }
 }
示例#2
0
 void tree_NodeMouseDoubleClick(object sender, TreeEventArgs e)
 {
     if (EditInterfaceSelectionEdit != null)
     {
         EditInterfaceViewEventArgs evt = new EditInterfaceViewEventArgs((e.Node as EditInterfaceTreeNode).EditInterface);
         EditInterfaceSelectionEdit.Invoke(evt);
     }
 }
示例#3
0
 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;
     }
 }
示例#4
0
        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);
            }
        }
示例#5
0
 void treeView_EditInterfaceSelectionChanged(EditInterfaceViewEventArgs evt)
 {
     selectedEditInterface            = evt.EditInterface;
     propEditor.EditInterface         = selectedEditInterface;
     uiCallback.SelectedEditInterface = selectedEditInterface;
 }