/// <summary> /// 加载配置 /// </summary> /// <param name="f1"></param> public void LoadConf(Fmain f1) { if (MyConf.LoadSeriaoConf(f1, ref ListOfPorts)) { MessageBox.Show("Load config Successfully", "Inform"); } else { MessageBox.Show("Make sure any config exist", "Error"); } }
/// <summary> /// 保存配置 /// </summary> public void SaveConf() { if (MyConf.SaveSerialConf(ref ListOfPorts)) { MessageBox.Show("Save config Successfully", "Inform"); } else { MessageBox.Show("Make sure any port opened", "Error"); } }