private void buttonSkip_Click(object sender, EventArgs e) { try { if (radioButtonTargetType1.Checked) { myApi.TargetType = 0; } else if (radioButtonTargetType2.Checked) { myApi.TargetType = 1; } else { myApi.TargetType = 0; } if (radioButtonDetectorType1.Checked) { myApi.DetectorType = 0; } else if (radioButtonDetectorType2.Checked) { myApi.DetectorType = 1; } else { myApi.DetectorType = 0; } SaveToConfig(); myConfig.SaveDeviceInit(); myUart.Pack_Debug_out(null, "[DeviceInit] Init Skip"); this.Hide(); FormMDIParent mdi = new FormMDIParent(this); mdi.StartPosition = FormStartPosition.CenterScreen; //mdi.ShowDialog(); mdi.Show(); } catch (Exception ex) { myUart.Pack_Debug_out(null, "Exception" + "[" + ex.ToString() + "]"); } }
private void DetectorInitFinish() { try { myUart.Pack_Debug_out(null, "[DeviceInit] Init Finish"); this.Hide(); FormMDIParent mdi = new FormMDIParent(this); mdi.StartPosition = FormStartPosition.CenterScreen; // mdi.ShowDialog(); mdi.Show(); } catch (Exception ex) { myUart.Pack_Debug_out(null, "Exception" + "[" + ex.ToString() + "]"); } }