private void 关闭ToolStripMenuItem_Click(object sender, EventArgs e) { if (led != null) { led.Close(); led = null; } }
private void tsmiRelease_Click(object sender, EventArgs e) { string select = ""; if (rdBtn1.Checked == true) { select = "文本信息"; } else { select = "常规信息"; } try { if (led != null) { led.Close(); led = null; } led = new LedScreen(select); led.Show(); this.Select(); } catch { } }