private void openClick(FCB fcb, File file)
        {
            switch (fcb.fileType)
            {
            case FCB.FileType.folder:     //双击文件夹进入当前文件夹
                current_directory = fcb;
                folderStack.Push(fcb);
                textBox1.Text = directory.getFile(current_directory).path;
                UpdateListView(fcb);
                break;

            case FCB.FileType.txt:     //双击文件弹出FileEditor
                FileEditor fileEditor = new FileEditor(file);
                fileEditor.Show();
                fileEditor.CallBack = UpdateView;
                break;

            default:
                break;
            }
        }
Beispiel #2
0
        private void openClick(FCB fcb, File file)
        {
            switch (fcb.fileType)
            {
            case FCB.FileType.folder:
                current_catalog = fcb;
                folderStack.Push(fcb);
                textBox1.Text = catalog.getFile(current_catalog).path;
                UpdateListView(fcb);
                break;

            case FCB.FileType.txt:
                FileEditor fileEditor = new FileEditor(file);
                fileEditor.Show();
                fileEditor.CallBack = UpdateView;
                break;

            default:
                break;
            }
        }