private void RestoreDefaultConfig() { using (var memoryStream = new MemoryStream(Encoding.Unicode.GetBytes(Properties.Resources.ApplicationDefaultDocks))) { MainDockPanel.Restore(memoryStream, m_DeserializeDockContent); memoryStream.Close(); } }
private void RestoreAppConfiguration() { if (!File.Exists(AppConfigFile)) { RestoreDefaultConfig(); return; } var fs = new FileStream(AppConfigFile, FileMode.Open, FileAccess.Read); try { MainDockPanel.Restore(fs, m_DeserializeDockContent); } finally { fs.Close(); } }