protected void Button2_Click(object sender, EventArgs e) { try { TableService objTblSvc = new TableService(); DataTable dtseries = new DataTable(); dtseries.Columns.Add("name"); DataRow dr = dtseries.NewRow(); dr[0] = ""; dtseries.Rows.Add(dr); dr = dtseries.NewRow(); dr[0] = ""; dtseries.Rows.Add(dr); dr = dtseries.NewRow(); dr[0] = ""; dtseries.Rows.Add(dr); dr = dtseries.NewRow(); dr[0] = ""; dtseries.Rows.Add(dr); dr = dtseries.NewRow(); dr[0] = ""; dtseries.Rows.Add(dr); var result = objTblSvc.GetHealthMointorWeather(); TextBox2.Text = result.Rows.Count > 0 ? "Weather Data has been successfully Tested" : "No data found. kindly check the Weather Data once again."; } catch (Exception ex) { TextBox2.Text = ex.Message; } }
public MobilePresenter() { objComm = new CommonUtil(); objServiceHandler = new ServiceHandler(); objTblSvc = new TableService(); objSvcPre = new ServicePresenter(); svcInfo = ServiceInfo.ServiceConfig; }