private void InitVsmdConnectionCB(InitResult initRet) { if (initRet.IsSuccess) { StatusBar.DisplayMessage(MessageType.Info, "设备连接成功!"); if (m_dripForm == null) { m_dripForm = new DripFrm(); m_dripForm.MdiParent = this; m_dripForm.Show(); m_connectForm.Close(); m_connectForm = null; } } else { StatusBar.DisplayMessage(MessageType.Error, initRet.Message); } }
private void tsmDrip_Click(object sender, EventArgs e) { SetAllSubFormState(); if (VsmdController.GetVsmdController().IsInitialized()) { if (m_dripForm == null || !m_dripForm.IsOpened) { m_dripForm = new DripFrm(); m_dripForm.MdiParent = this; //m_dripForm.WindowState = FormWindowState.Maximized; m_dripForm.Show(); } else { m_dripForm.BringToFront(); } } else { StatusBar.DisplayMessage(MessageType.Error, "设备未连接!"); } }