protected void Page_Load(object sender, EventArgs e) { this._ProcessUsers = new ClsProcessUsers("MasterSchedule"); _ProcessUsers.SqlError += new ClsProcessUsers.SqlErrorEventHandler(clsProcessUsers_SqlError); _instanceProcesses = new ClsProcesses("MasterSchedule"); }
public List <ClsProcesses> FillList(DataSet ds) { List <ClsProcesses> list = new List <ClsProcesses>(); foreach (DataRow row in ds.Tables[0].Rows) { ClsProcesses objTemp = new ClsProcesses(_connectionStringName); objTemp.ProcessId = (int)row["ProcessID"]; if (row["ProcessName"] != System.DBNull.Value) { objTemp.ProcessName = (string)row["ProcessName"]; } if (row["ProcessGroup"] != System.DBNull.Value) { objTemp.ProcessGroup = (int)row["ProcessGroup"]; } list.Add(objTemp); } return(list); }