29 lines
884 B
C#
29 lines
884 B
C#
// 本文件由『生成停靠窗口代码』自动生成格式参考手写,集合变更后请同步刷新。
|
|
using System;
|
|
using WeifenLuo.WinFormsUI.Docking;
|
|
|
|
namespace cadbt
|
|
{
|
|
public partial class MainForm
|
|
{
|
|
void CreateDockWindows_dockSurface1()
|
|
{
|
|
var dockSurface1 = this.dockSurface1 as Smart.CustomComponents.DockSurface;
|
|
if (dockSurface1 == null) return;
|
|
dockSurface1.EnsureDefaultTheme(); // 必须:Show 前保证有效主题
|
|
|
|
var quote = new cadbt.DockWindows.QuoteWindow();
|
|
quote.CloseButtonVisible = false;
|
|
quote.TabText = "报价工具";
|
|
quote.Text = "报价工具";
|
|
quote.Show(dockSurface1, DockState.DockLeft);
|
|
|
|
var viewer = new cadbt.DockWindows.CadViewerWindow();
|
|
viewer.CloseButtonVisible = false;
|
|
viewer.TabText = "CAD 查看器";
|
|
viewer.Text = "CAD 查看器";
|
|
viewer.Show(dockSurface1, DockState.Document);
|
|
}
|
|
}
|
|
}
|