public Control GetRawEditor() { if (null == this._rawControl) { var richTextBox = new CSharpEditor(); var folderPrefix = this.FileName.Contains(".obj.") ? "DomainModel" : "Nodes"; this._rawControl = richTextBox.CreateTab($@"E:\Projects\BWMT\BWM\DesktopClient\SigningModel\{folderPrefix}\{FileName}"); } return(_rawControl); }
public DesignEditor(EditorType type = EditorType.Action) { InitializeComponent(); this.type = type; initializeEditorByType(); this.classes = new List <ClassDef>(); var csharpEditor = new CSharpEditor(); this.tab = csharpEditor.CreateTab(null); this.groupBoxAction.Controls.Add(this.tab); BindData(); DomainObjects_SelectedIndexChanged(this, EventArgs.Empty); }