Exemplo n.º 1
0
 private void MainTree_AfterSelect(object sender, TreeViewEventArgs e)
 {
     if (TreeEvent != null)
     {
         CFunction             func = (CFunction)e.Node.Tag;
         FunctionTreeEventArgs args = new FunctionTreeEventArgs(func.Ui);
         TreeEvent(this, args);
     }
 }
Exemplo n.º 2
0
        public MainFunctions( )
        {
            InitializeComponent( );
            List <CFunction> shareSpaceFunctionList = new List <CFunction> ( );
            CFunction        function = new CFunction( );

            function.Name = "我共享给他人的文档";
            shareSpaceFunctionList.Add(function);
            function      = new CFunction( );
            function.Name = "他人共享给我的文档";
            shareSpaceFunctionList.Add(function);
            shareSpacefunctionTree.FunctionList = shareSpaceFunctionList;
        }