public MainForm() { InitializeComponent(); fileManager = new FileManager(this, this.tabSidebar, this.RTX); editBox.AssignRTX(this.RTX, this); this.DoubleBuffered = true; }
public Tab_Buttons(FileManager RootFM, FileManager.File AttachedFile, TabSidebar TS) { this.TS = TS; this.FM = RootFM; this.AttachedFile = AttachedFile; this.tab = newTab(); this.close = newClosing(); tab.Text = AttachedFile.name; }
public File(string name, bool iffocsed, string filepath, FileManager ParentFM) { this.ParentFM = ParentFM; this.ifEdited = false; this.ifFocused = iffocsed; this.name = name; this.filePath = filepath; this.buttons = new TabSidebar.Tab_Buttons(ParentFM, this, this.ParentFM.tabSidebar); if (String.IsNullOrEmpty(filePath)) this.content = ""; else content = rtfReader(filePath); }