/// <summary> /// Uses the xml files in resource to retrieve desired settings. /// I use the GetTestData for testing various methods of retrieving data. /// the RetrieveFirmwareInfo is used to retrieve the product release name and firmware version /// </summary> private void RetrieveDeviceData() { Cursor.Current = Cursors.WaitCursor; btnRun.Enabled = false; RetrieveFirmwareInfo(); ProcessXML px = new ProcessXML(); //px.GetTestData(); px.GetFIM_TestingInfo(); // px.GetDeviceInformation(); RetrieveSettings(px.ListDeviceEndPoints); // start of new request if (_listDeviceData.Count == 0) { LoadDataFim(px.ListDeviceEndPoints, _listDeviceData); } else // retrieving the second set for comparison { RetrieveFirmwareInfo(); DataFims lstTemp = new DataFims(); LoadDataFim(px.ListDeviceEndPoints, lstTemp); AddedNewValue(lstTemp); } BindDataGrid(); SetRowIndicator(); Cursor.Current = Cursors.Default; btnRun.Enabled = true; }
private void RetrieveFirmwareInfo() { ProcessXML px = new ProcessXML(); px.GetFirmwareInfo(); RetrieveSettings(px.ListDeviceEndPoints); if (px.ListDeviceEndPoints[0].EndPointName.Equals("fim")) { SetProductInfo(px.ListDeviceEndPoints[0]); } this.Refresh(); }