private void getAllAlarmsBetweenDate(string date1, string date2) { ServiceH2O.ServiceLogClient client = new ServiceH2O.ServiceLogClient(); ChartModule chartModule = new ChartModule(); string xml = client.GetAlarmsBetweenDate(chartModule.ConvertToUnixTimestamp(date1, false), chartModule.ConvertToUnixTimestamp(date2, true)); Console.WriteLine(chartModule.ConvertToUnixTimestamp(date2, true) + "ola"); Console.WriteLine(chartModule.ConvertToUnixTimestamp(date1, false) + "adeuas"); XmlDocument doc = new XmlDocument(); doc.LoadXml(xml); XmlNodeList xmlnodeList = doc.SelectNodes("/Alarms/Sensor"); if (xmlnodeList.Count < 1) { MessageBox.Show("Info not available"); return; } populateListAlarms(xmlnodeList); }
public void getAllSensorsBetweenDate(string date1, string date2) { ChartModule chartModule = new ChartModule(); ServiceH2O.ServiceLogClient client = new ServiceH2O.ServiceLogClient(); String xml = client.GetValuesBetweenDate(chartModule.ConvertToUnixTimestamp(date1, false), chartModule.ConvertToUnixTimestamp(date2, true)); populateCharts(xml); }