Beispiel #1
0
 public Negotiator getAreaListView()
 {
     db = new dbConn_mysql();
     string[] areas = this.BindTo(db.getAreaList());
     db.Dispose();
     db = null;
     Negotiator areaListView = View["areaListView",areas];
     areas = null;
     return areaListView;
 }
Beispiel #2
0
        public area(string name)
        {
            this.name = name;
            db = new dbConn_mysql();
            DataTable rawData = db.getSensorTable(name);
            db.Dispose();

            List<sensor> holder = new List<sensor>();
            foreach (DataRow row in rawData.Rows)
                holder.Add(new sensor(row));
            this.sensors = holder.ToArray();
            holder = null;
        }