本文整理汇总了C#中System.Windows.Forms.ContainerControl.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# ContainerControl.ResumeLayout方法的具体用法?C# ContainerControl.ResumeLayout怎么用?C# ContainerControl.ResumeLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.ContainerControl
的用法示例。
在下文中一共展示了ContainerControl.ResumeLayout方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadWindow
/// <summary>
/// Loads the SurveyTreeControl from the current document
/// </summary>
protected void LoadWindow()
{
ToolWindowDiagramView diagramView = myDiagramView;
LinkLabel watermarkLabel = myWatermarkLabel;
if (diagramView == null)
{
ContainerControl container = new ContainerControl();
myDiagramView = diagramView = new ToolWindowDiagramView(this);
diagramView.DiagramClientView.DiagramDisassociating += new EventHandler(DiagramDisassociatingEvent);
myWatermarkLabel = watermarkLabel = new SafeLinkLabel();
watermarkLabel.Dock = DockStyle.Fill;
watermarkLabel.Site = diagramView.Site;
watermarkLabel.TextAlign = ContentAlignment.MiddleCenter;
watermarkLabel.BackColor = SystemColors.ControlLight;
watermarkLabel.ForeColor = SystemColors.ControlText;
watermarkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(WatermarkLinkClicked);
container.Site = diagramView.Site;
diagramView.BackColor = SystemColors.Window;
diagramView.Dock = DockStyle.Fill;
diagramView.ContextMenuRequestedEvent += new EventHandler<DiagramMouseEventArgs>(this.DesignerContextMenuRequested);
diagramView.Visible = false;
DiagramClientView clientView = diagramView.DiagramClientView;
clientView.ZoomChanged += new ZoomChangedEventHandler(this.DesignerZoomChanged);
clientView.TakeFocusOnDragOver = true;
container.SuspendLayout();
container.Controls.Add(diagramView);
container.Controls.Add(watermarkLabel);
container.ResumeLayout();
Guid commandSetId = typeof(ORMDesignerEditorFactory).GUID;
Frame.SetGuidProperty((int)__VSFPROPID.VSFPROPID_InheritKeyBindings, ref commandSetId);
}
ORMDesignerDocData currentDocument = this.CurrentDocument;
Store newStore = (currentDocument != null) ? currentDocument.Store : null;
Store oldStore = myStore;
if (oldStore != newStore)
{
myDiagramSetChanged = true;
myStore = newStore;
AdjustVisibility(false, false);
}
}