/// <summary> /// 切换主卡/扩展卡 /// </summary> void Tool_ChangeCardIDFont() { if (S2data.GetCardID() == 0) { S2data.SetCardID(1); //切换到S1卡 this.lbIOmain.Font = new Font("宋体", 9, FontStyle.Regular); this.lbIOextern.Font = new Font("宋体", 9, FontStyle.Bold); lForm.RecodeInfo("切换到S1卡!"); } else { S2data.SetCardID(0); //切换到S1卡 this.lbIOmain.Font = new Font("宋体", 9, FontStyle.Bold); this.lbIOextern.Font = new Font("宋体", 9, FontStyle.Regular); lForm.RecodeInfo("切换到主板!"); } S2data.MInput = 0; S2data.MOutput = 0; }