コード例 #1
0
        protected virtual void OnCustomCheck(System.Windows.Forms.TreeNode node, System.Windows.Forms.TreeViewAction action)
        {
            System.Windows.Forms.TreeViewCancelEventArgs e = new System.Windows.Forms.TreeViewCancelEventArgs(node, false, action);
            OnBeforeCheck(e);
            //
            if (node is IStateTreeNode)
            {
                ((IStateTreeNode)node).UpdateState(e);
            }
            //
            if (e.Cancel)
            {
                return;
            }

            OnAfterCheck(new System.Windows.Forms.TreeViewEventArgs(node, action));
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: akinomyoga/FontEditor
 public virtual void BeforeExpand(object sender, System.Windows.Forms.TreeViewAction action, ref bool cancel)
 {
 }
コード例 #3
0
ファイル: Program.cs プロジェクト: akinomyoga/FontEditor
 public virtual void AfterSelect(object sender, System.Windows.Forms.TreeViewAction action)
 {
 }