Exemplo n.º 1
0
		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);
		}
Exemplo n.º 2
0
		string GetTableText(Table table)
		{
			if (!ContentType.IsTableType())
				ContentType = Parser.ParserType.Columns;
			return table.ToString(Data.DefaultEnding, ContentType);
		}