本文整理汇总了C#中DeserializeDockContent类的典型用法代码示例。如果您正苦于以下问题:C# DeserializeDockContent类的具体用法?C# DeserializeDockContent怎么用?C# DeserializeDockContent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DeserializeDockContent类属于命名空间,在下文中一共展示了DeserializeDockContent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
public Main()
{
InitializeComponent();
MainMenuStrip.MdiWindowListItem = windowToolStripMenuItem;
m_xmlNodeExplorer.RightToLeftLayout = RightToLeftLayout;
m_serverExplorer.RightToLeftLayout = RightToLeftLayout;
m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
m_serverExplorer.SQLServerSelected += new EventHandler<ServerTreeEventArgs>(m_serverExplorer_SQLServerSelected);
m_serverExplorer.DBSelected += new EventHandler<DBTreeEventArgs>(m_serverExplorer_DBSelected);
m_serverExplorer.DBUnSelected += new EventHandler<DBTreeEventArgs>(m_serverExplorer_DBUnSelected);
m_serverExplorer.SchemaGenerationStarted += new EventHandler<DBTreeEventArgs>(m_serverExplorer_SchemaGenerationStarted);
m_serverExplorer.SchemaCompareStarted += new EventHandler<SchemaGeneratedEventArgs>(m_serverExplorer_SchemaCompareStarted);
m_serverExplorer.SchemaGenerated += new EventHandler<DBTreeEventArgs>(m_serverExplorer_SchemaGenerated);
m_serverExplorer.SchemaCompared += new EventHandler<SchemaGeneratedEventArgs>(m_serverExplorer_SchemaCompared);
m_serverExplorer.TableSelected += new EventHandler<TableTreeEventArgs>(m_serverExplorer_TableSelected);
m_serverExplorer.TableUnSelected += new EventHandler<TableTreeEventArgs>(m_serverExplorer_TableUnSelected);
m_serverExplorer.TableCompareStarted += new EventHandler<TableTreeEventArgs>(m_serverExplorer_TableCompareStarted);
dockPanel.ContentAdded += new EventHandler<DockContentEventArgs>(dockPanel_ContentAdded);
dockPanel.ContentRemoved += new EventHandler<DockContentEventArgs>(dockPanel_ContentRemoved);
dockPanel.ActiveDocumentChanged += new EventHandler(dockPanel_ActiveDocumentChanged);
dockPanel.ActiveContentChanged += new EventHandler(dockPanel_ActiveContentChanged);
windowToolStripMenuItem.DropDownItemClicked += new ToolStripItemClickedEventHandler(windowToolStripMenuItem_DropDownItemClicked);
string appPath = Path.GetDirectoryName(Application.ExecutablePath);
optionsFileName = Path.Combine(appPath, "options.config");
configFileName = Path.Combine(appPath, "dockPanel.config");
windowsSettingsFile = Path.Combine(appPath, "windows.config");
btnHTML.Enabled = true;
this.progressIndicator.Visible = false;
}
示例2: CancerRiskView_Load
private void CancerRiskView_Load(object sender, EventArgs e)
{
if (!ViewClosing)
{
theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;
string configFile = SessionManager.SelectDockConfig("CancerRiskViewDockPanel.config");
DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
if (File.Exists(configFile))
{
theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
}
else
{
colorv = new ColoEndoCancerRiskView();
colorv.Show(theDockPanel);
colorv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
bocrv = new BrOvCancerRiskView();
bocrv.Show(theDockPanel);
bocrv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
}
bocrv.SetOvarianRiskVisibility(true);
}
}
示例3: Main
public Main()
{
InitializeComponent();
this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;
this.dockContentLayout = new DeserializeDockContent(this.GetLayout);
}
示例4: MainFrm
//-------------------------------------------------------------------------------------------------------------------------------
public MainFrm(string configFile)
{
InitializeComponent();
this.configFile = configFile;
//decerialization helper
m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
}
示例5: MainForm
public MainForm()
{
InitializeComponent();
#if DockSample1 // todo // eucaly, 151205
SetSplashScreen();
#endif // eucaly, 151205
Text = "logPLot - program loading"; // Form Title // eucaly, 151205
CreateStandardControls();
showRightToLeft.Checked = (RightToLeft == RightToLeft.Yes);
RightToLeftLayout = showRightToLeft.Checked;
// m_solutionExplorer.RightToLeftLayout = RightToLeftLayout;
m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
#if DockSample1 // todo // eucaly, 151205
vS2012ToolStripExtender1.DefaultRenderer = _toolStripProfessionalRenderer;
vS2012ToolStripExtender1.VS2012Renderer = _vs2012ToolStripRenderer;
vS2012ToolStripExtender1.VS2013Renderer = _vs2013ToolStripRenderer;
#endif // eucaly, 151205
this.topBar.BackColor = this.bottomBar.BackColor = Color.FromArgb(0xFF, 41, 57, 85);
SetSchema(this.menuItemSchemaVS2013Blue, null);
}
示例6: AdditionalCancerRiskFactorsView_Load
private void AdditionalCancerRiskFactorsView_Load(object sender, EventArgs e)
{
if (!ViewClosing)
{
theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;
string configFile = SessionManager.SelectDockConfig("AdditionalCancerRiskFactorsView.config");
DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
if (File.Exists(configFile))
{
theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
}
else
{
bcrf = new BreastCancerRiskFactors();
bcrf.Show(theDockPanel);
bcrf.DockState = DockState.Document;
ccrf = new ColonCancerRiskFactors();
ccrf.Show(theDockPanel);
ccrf.DockState = DockState.Document;
}
}
}
示例7: SpriteForm
public SpriteForm()
{
InitializeComponent();
_currentPath = Extensions.CheckDirectorySeparator(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
_spriteListWindow = new SpriteListWindow();
_spriteListWindow.SpriteChanged += SpriteListWindowSpriteChanged;
_spritePreviewWindow = new SpritePreviewWindow();
_spriteDeltasWindow = new SpriteDeltasWindow();
_spriteDeltasWindow.CheckedDeltaItemsChanged += SpriteDeltasWindowCheckedDeltaItemsChanged;
_spriteRemapsWindow = new SpriteRemapsWindow();
_spriteRemapsWindow.RemapChanged += SpriteRemapsWindowRemapChanged;
_deserializeDockContent += DeserializeDockContent;
var layoutFile = _currentPath + LayoutFile;
try
{
dockPanel.LoadFromXml(layoutFile, _deserializeDockContent);
}
catch (Exception)
{
var stream = Assembly.GetAssembly(GetType()).GetManifestResourceStream(GetType().Namespace + ".Resources.SpriteFormDefaultLayout.xml");
dockPanel.LoadFromXml(stream, _deserializeDockContent);
if (stream != null)
stream.Close();
}
//Thread
LoadPalette(_currentPath + Globals.GraphicsSubDir + Path.DirectorySeparatorChar + Globals.PaletteSuffix + Globals.TextureImageFormat);
LoadSprites(_currentPath + Globals.GraphicsSubDir + Path.DirectorySeparatorChar + Globals.SpritesSuffix + Globals.XmlFormat);
LoadDeltas(_currentPath + Globals.GraphicsSubDir + Path.DirectorySeparatorChar + Globals.DeltasSuffix + Globals.XmlFormat);
CreateSpriteData(_spriteListWindow.TextureAltas);
}
示例8: DiagnosticReportsView_Load
private void DiagnosticReportsView_Load(object sender, EventArgs e)
{
if (!ViewClosing)
{
theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;
string configFile = SessionManager.SelectDockConfig("RiskClinicDiagnosticReportsViewDockPanel.config");
DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
if (File.Exists(configFile))
theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
else
{
tv = new TestsView();
tv.InitialDx = InitialDx;
tv.Show(theDockPanel);
tv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
ov = new OrdersView();
ov.Show(theDockPanel);
ov.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
}
patientRecordHeader1.setPatient(SessionManager.Instance.GetActivePatient());
}
}
示例9: FrmMain
public FrmMain()
{
InitializeComponent();
var splash = new FrmSplash();
// splash.Show();
_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
}
示例10: MainForm2
public MainForm2() {
InitializeComponent();
showRightToLeft.Checked = ( RightToLeft == RightToLeft.Yes );
RightToLeftLayout = showRightToLeft.Checked;
m_solutionExplorer = new DummySolutionExplorer();
m_solutionExplorer.RightToLeftLayout = RightToLeftLayout;
m_deserializeDockContent = new DeserializeDockContent( GetContentFromPersistString );
}
示例11: MainForm
public MainForm()
{
InitializeComponent();
_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
_threadList = new Dictionary<string, Thread>();
_taskManagerList = new Dictionary<string, TaskManager>();
_hasRemindDialog = false;
}
示例12: MainForm
public MainForm()
{
InitializeComponent();
CreateMDIForm();
//iReaperNotifyManager.InitSysIcon(this.components);
Application.Idle += new EventHandler(Application_Idle);
CoreData.CoreDataContent[CoreDataTypes.ApplicationForm] = this;
this.deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
}
示例13: FormMain
public FormMain()
{
InitializeComponent();
this.Shown += FormMain_Shown;
this.WindowState = FormWindowState.Maximized;
CreateStandardControls();
m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
}
示例14: LoadFromXml
public static void LoadFromXml(DockPanel dockPanel, string fileName,
DeserializeDockContent deserializeContent)
{
FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.Read);
try{
LoadFromXml(dockPanel, fs, deserializeContent);
} finally{
fs.Close();
}
}
示例15: DataCreator
public DataCreator()
{
DOMConfigurator.Configure();
m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
InitializeComponent();
_frmConnection.ChangedDBEvent+=new DBConnection.ChangedDBHandler( this.ChangeDB );
_frmConnection.ChangedServerEvent += new DBConnection.ChangedServerHandler(this.ChangeServer);
_frmTables.ScriptEvent+= new TableForm.ScriptHandler(HandleScript);
}