private void btn_Scene_Click(object sender, EventArgs e) { try { Forms.ScenePlayer dlg = new ScenePlayer(mFixture); dlg.DockPanel = this.DockPanel; dlg.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Float; dlg.Show(); } catch (Exception ex) { MessageBox.Show("Error", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void panelToolStripMenuItem_Click(object sender, EventArgs e) { try { Fixture fix = (Fixture)mSelectedNode.Tag; Forms.ScenePlayer dlg = new ScenePlayer(fix); // dlg.Size = new Size(439, 288); dlg.DockPanel = this.DockPanel; dlg.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Float; dlg.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }