public FrmCamAxisMotion() { InitializeComponent(); this.htWindow.SetTablePanelVisible(false); distance = (double)numDistance.Value; this.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Application.ExecutablePath); Instance = this; }
private void btnCmrAxisTool_Click(object sender, EventArgs e) { FrmCamAxisMotion frm = FrmCamAxisMotion.Instance; if (frm == null || frm.IsDisposed) { frm = new FrmCamAxisMotion(); frm.SetStation(_station as IJFStation); frm.TopMost = true; int SH = Screen.PrimaryScreen.Bounds.Height; int SW = Screen.PrimaryScreen.Bounds.Width; frm.Show(); frm.Location = new Point((SW - frm.Size.Width) / 2, (SH - frm.Size.Height) / 2); } else { frm.Activate(); } }