public List<ram> getRamData() { List<ram> list = new List<ram>(); con.Open(); string query = "select top 1 Used,Total from UsageRam"; cmd = new SqlCommand(query, con); dr = cmd.ExecuteReader(); while (dr.Read()) { var reading = new ram { Used = Convert.ToInt32(dr[0]), Total = dr[1].ToString() }; list.Add(reading); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)