Example #1
0
        private void createFile(string fullPath)
        {
            var sr = File.CreateText(fullPath);

            sr.Close();
            CodeEditorWrapper.NewDocument(fullPath);
        }
Example #2
0
        private void _AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (CodeEditorWrapper == null)
            {
                return;
            }

            if (CodeEditorWrapper.ContainsDocument(SelectedNode.FullPath))
            {
                if (CodeEditorWrapper.CurrentFileName != SelectedNode.FullPath)
                {
                    CodeEditorWrapper.SwitchTab(SelectedNode.FullPath);
                    //CodeEditorWrapper.CurrentFileName = this.SelectedNode.FullPath;
                    //CodeEditorWrapper.SwitchDocument(this.SelectedNode.FullPath);
                }
            }
            else if (File.Exists(SelectedNode.FullPath))
            {
                CodeEditorWrapper.NewDocument(SelectedNode.FullPath);
            }
        }