public static void switch_office(string cmd, string currentoffice, string specifiedoffice) { return; if (GlobalVar.loginLC.IPsString_backup.Split('~').Length <= 1) { return; } string specifyCmd = "da~ddi~detr~di~da~dz~etdz~etrf~etry~stn~te~ti~tipb~tipn~tn~to~trfd~trfx~trfu~tsl~vt~xc~xi~xo~tss~vof~exit"; specifyCmd += "~qc~qd~qe~qn~qr~qs~qt"; specifyCmd += "~si~so~adm~an~asr~siff~cvof"; if (EagleAPI.GetCmdName(cmd, specifyCmd) != "") { //使用指定配置 if (currentoffice == specifiedoffice) { return; } else { GlobalVar.bSwichConfigAuto = true; GlobalVar.bSwichConfigByManual = true; EagleAPI.SpecifyCFG(specifiedoffice); } } else { //使用全部配置 if (currentoffice == GlobalVar.loginLC.IPsString_backup) { return; } else { GlobalVar.bSwichConfigAuto = true; GlobalVar.bSwichConfigByManual = true; EagleAPI.SpecifyCFG(GlobalVar.loginLC.IPsString_backup); } } }