/// <summary> /// read particular Part Type xml file /// </summary> /// <param name="partType"></param> part type of trackpad,eg: 10200100 public TrackpadConfig read(string partType) { TrackpadConfig TP = new TrackpadConfig(); try { TP = ObjectXMLSerializer<TrackpadConfig>.Load(ConfigFilePath + partType + ".xml"); return TP; } catch { TP = ObjectXMLSerializer<TrackpadConfig>.Load(ConfigFilePath + partType + ".XML"); return TP; } }
private void comboBoxModule_SelectedIndexChanged(object sender, EventArgs e) { try { XML_FILENAME = comboBoxModule.SelectedItem.ToString(); //load from XML file dutConfig = ObjectXMLSerializer <TrackpadConfig> .Load(ConfigFilePath + XML_FILENAME); LoadSettings(); } catch { ReadMouleList(); return; } }
/// <summary> /// read particular Part Type xml file /// </summary> /// <param name="partType"></param> part type of trackpad,eg: 10200100 public TrackpadConfig read(string partType) { TrackpadConfig TP = new TrackpadConfig(); try { TP = ObjectXMLSerializer <TrackpadConfig> .Load(ConfigFilePath + partType + ".xml"); return(TP); } catch { TP = ObjectXMLSerializer <TrackpadConfig> .Load(ConfigFilePath + partType + ".XML"); return(TP); } }
private void comboBoxModule_SelectedIndexChanged(object sender, EventArgs e) { try { XML_FILENAME = comboBoxModule.SelectedItem.ToString(); //load from XML file dutConfig = ObjectXMLSerializer<TrackpadConfig>.Load(ConfigFilePath + XML_FILENAME); LoadSettings(); } catch { ReadMouleList(); return; } }