DotNet 4.8.1 build of DotNetBar
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
|
||||
namespace DevComponents.DotNetBar
|
||||
{
|
||||
internal class DocumentSerializationXml
|
||||
{
|
||||
public static string Documents="documents";
|
||||
public static string DockContainer="dockcontainer";
|
||||
public static string BarContainer="barcontainer";
|
||||
public static string Orientation="orientation";
|
||||
public static string Width="w";
|
||||
public static string Height="h";
|
||||
public static string DockSite = "docksite";
|
||||
public static string DockingSide = "dockingside";
|
||||
public static string DockSiteSize = "size";
|
||||
public static string Version = "version";
|
||||
public static string OriginalDockSiteSize = "originaldocksitesize";
|
||||
|
||||
public static DocumentBaseContainer CreateDocument(string xmlName)
|
||||
{
|
||||
if(xmlName==DocumentSerializationXml.DockContainer)
|
||||
return new DocumentDockContainer();
|
||||
else if(xmlName==DocumentSerializationXml.BarContainer)
|
||||
return new DocumentBarContainer();
|
||||
else
|
||||
throw new InvalidOperationException("Document type not recognized: "+xmlName);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user