private void SetLayoutFromData(GR.Memory.ByteBuffer Data)
{
PanelMain.SuspendLayout(true);
// need to clear all
foreach (var toolEntry in Tools)
{
toolEntry.Value.Document.DockPanel = null;
}
Main.CloseAllDocuments();
//Debug.Log( Data.ToAsciiString() );
System.IO.MemoryStream memIn = new System.IO.MemoryStream(Data.Data(), false);
try
{
PanelMain.LoadFromXml(memIn, m_deserializeDockContent);
}
catch (Exception ex)
{
Debug.Log("SetLayoutFromData: " + ex.Message);
}
memIn.Close();
memIn.Dispose();
PanelMain.ResumeLayout(true, true);
}