Ejemplo n.º 1
0
        void ItemCreateFile_Executed(object sender, EventArgs e)
        {
            string newFile    = _status.CurrentDirPath + _status.PathSeparator + "NewFile.txt";
            var    fileEditer = new FileEditerPanel(_status.Host, _status.ShellData, newFile, false);

            _status.Host.Ui.OpenTabPage("FileEdit", fileEditer);
        }
Ejemplo n.º 2
0
        void ItemEdit_Executed(object sender, EventArgs e)
        {
            var selectFile = _status.FileGridView.SelectedItem as FileInfoView;

            if (selectFile != null && !selectFile.IsDir)
            {
                var webFile    = selectFile.FullName;
                var fileEditer = new FileEditerPanel(_status.Host, _status.ShellData, webFile, true);
                _status.Host.Ui.OpenTabPage("FileEdit", fileEditer);
            }
        }