public void removeSessionData(string key) { for (int i = 0; i < searchList.Count; i++) { USTTISession app = (USTTISession)searchList[i]; if (app.key == key) { searchList.RemoveAt(i); } } }
public void removeSessionListItem(String name) { for (int i = 0; i < searchList.Count; i++) { USTTISession app = (USTTISession)searchList[i]; if (app.key == name) { searchList.RemoveAt(i); } } }
public void addSessionData(string key, string value) { if (IsKeyAlreadyExists(key)) { removeSessionData(key); } USTTISession session = new USTTISession(); session.key = key; session.keyValue = value; searchList.Add(session); }
public USTTISession Get(String key) { for (int i = 0; i < this.List.Count; i++) { USTTISession session = (USTTISession)this.List[i]; if (session.key == key) { return(session); } } return(null); }
public string getSessionData(string key) { string SessionData = string.Empty; for (int i = 0; i < searchList.Count; i++) { USTTISession app = (USTTISession)searchList[i]; if (app.key == key) { SessionData = app.keyValue; } } return(SessionData); }
protected bool IsKeyAlreadyExists(string key) { bool KeyAlreadyExists = false; for (int i = 0; i < searchList.Count; i++) { USTTISession app = (USTTISession)searchList[i]; if (app.key == key) { KeyAlreadyExists = true; } } return(KeyAlreadyExists); }
public string buildStudentInfoExtendedWhereClause() { string whereClause = " where 1 = 1 "; for (int i = 0; i < searchList.Count; i++) { USTTISession app = (USTTISession)searchList[i]; if ((app.key != "Start Date") && (app.key != "Orientation Start") && (app.key != "Year")) { whereClause = whereClause + " and [" + app.key + "] = " + app.keyValue; } } return(whereClause); }
public string buildCourseWhereClause() { string whereClause = " where 1 = 1 "; for (int i = 0; i < searchList.Count; i++) { USTTISession app = (USTTISession)searchList[i]; if ((app.key != "First") && (app.key != "Last") && (app.key != "Country")) { whereClause = whereClause + " and [" + app.key + "] = " + app.keyValue; } } return(whereClause); }
public string buildAllWhereClause() { string whereClause = " where 1 = 1 "; for (int i = 0; i < searchList.Count; i++) { USTTISession app = (USTTISession)searchList[i]; if (app.key != "Year") { whereClause = whereClause + " and [" + app.key + "] = " + app.keyValue; } } return(whereClause); }
public void Add(USTTISession info) { this.List.Add(info); }