public WorkspaceForm() { instance = this; InitializeComponent(); HideOnClose = true; }
private void MDIForm_Load(object sender, EventArgs e) { mWorkspaceForm = new WorkspaceForm(); mWorkspaceForm.Show(DockPanel, WeifenLuo.WinFormsUI.Docking.DockState.DockLeft); mTimer.Interval = 1000; mTimer.Tick += new EventHandler(mTimer_Tick); mTimer.Start(); }