private void ClearList() { _sectorObjects.Clear(); _levelObjects.Clear(); CurrentList.Clear(); PreviousList.Clear(); }
public bool AddPrevious(Node node) { if (this != node) { PreviousList.Add(node); return(true); } return(false); }
protected void Bind_CheckList() // Method for Binding The Checkbox List { string tempCourse; List <string> listContents = new List <string>();// Create a List of String Elements foreach (var Course in Student1.courseList) { tempCourse = Course.charac + " " + Course.num + Course.lab; listContents.Add(tempCourse); PreviousList.DataSource = listContents; //Set Datasource to CheckBox List PreviousList.DataBind(); // Bind the checkboxList with String List. } }
private void SetList(bool active) { var list = active ? CurrentList: PreviousList; for (int i = 0; i < list.Count; i++) { var pos = list[i]; if (active && !PreviousList.Contains(pos)) { SetSector(pos, true); } else if (!active && !CurrentList.Contains(pos)) { SetSector(pos, false); } } }
public void AddPrevious(Node node) { PreviousList.Add(node); }
public virtual void Clear() { CurrentList.Clear(); PreviousList.Clear(); }