コード例 #1
0
        //***************************界面点击事件****************************

        /// <summary>
        /// 返回键
        /// </summary>
        private void btnFolderBack_MouseUp(object sender, MouseEventArgs e)
        {
            if (folderController.GetRoot().StartsWith("group:\\"))
            {
                listViewController.Show(folderController.GoParentPath(), mHideSeen);
            }
            else
            {
                listViewController.Import(folderController.GoParentPath());
            }
            LabelPath.Text             = folderController.GetFullPath();
            this.btnFolderBack.Enabled = folderController.IsRoot() ? false : true;
        }
コード例 #2
0
        private void fileListView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            ListViewHitTestInfo info = fileListView.HitTest(e.X, e.Y);

            if (info.Item != null)
            {
                ListViewItem item = info.Item;
                if (item.ImageIndex == 0)   //如果是文件夹
                {
                    folderController.GoChildPath(item.Text);
                    listViewController.Import(folderController.GetFullPath(), !folderController.IsRoot());
                }
                else     //如果是文件
                {
                    OpenFile(item.Text);
                }
            }
        }