Exemplo n.º 1
0
        private void Main_Load(object sender, EventArgs e)
        {
            #region Init UIController

            List <TextBox> listTextBox = new List <TextBox>();
            listTextBox.Add(tbFileID);
            listTextBox.Add(tbFileName);
            listTextBox.Add(tbFileKind);
            listTextBox.Add(tbFromApp);
            listTextBox.Add(tbFileSize);
            listTextBox.Add(tbCreateDate);
            UIController.InitUIController(ref treeView1, ref listView1, ref listTextBox, ref rtbFileInfo, this);

            #endregion


            #region For Login

            //进行通信,拉取用户的数据。

            FileTreeNode fileTreeNode = BLLControl.InitFileTree();

            UIController.InitData(fileTreeNode);
            //0是自己文件夹
            UIController.InitFolder(fileTreeNode.SubNodes[0], fileTreeNode.SubNodes[1], fileTreeNode.SubNodes[2], fileTreeNode.SubNodes[3]);


            #endregion

            //Start the Timer. Just for Demo. Has poor performance.
            UpdateStateString();

            UIController.FillFileTreeByTimerLoadingMessage(ref treeView1);

            timerMessage.Start();
        }