void OpenTable(Table table, string name = null) { var contentType = ContentType.IsTableType() ? ContentType : Parser.ParserType.Columns; var textEditor = new TextEditor(bytes: Coder.StringToBytes(table.ToString("\r\n", contentType), Coder.CodePage.UTF8), codePage: Coder.CodePage.UTF8, modified: false); textEditor.ContentType = contentType; textEditor.DisplayName = name; TabsParent.CreateTab(textEditor); }
string GetTableText(Table table) { if (!ContentType.IsTableType()) ContentType = Parser.ParserType.Columns; return table.ToString(Data.DefaultEnding, ContentType); }