Esempio n. 1
0
 private void ClearList()
 {
     _sectorObjects.Clear();
     _levelObjects.Clear();
     CurrentList.Clear();
     PreviousList.Clear();
 }
Esempio n. 2
0
 public bool AddPrevious(Node node)
 {
     if (this != node)
     {
         PreviousList.Add(node);
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
        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.
            }
        }
Esempio n. 4
0
        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);
                }
            }
        }
Esempio n. 5
0
 public void AddPrevious(Node node)
 {
     PreviousList.Add(node);
 }
Esempio n. 6
0
 public virtual void Clear()
 {
     CurrentList.Clear();
     PreviousList.Clear();
 }