Beispiel #1
0
        public int AddDriver(GangsDriver driver)
        {
            if (this.driverSet.Count >= maxDriverSize)
                throw new IndexOutOfRangeException();

            GangsDriverSet tmp = new GangsDriverSet(driver);
            this.driverSet.Add(tmp);

            return this.driverSet.IndexOf(tmp);
        }
Beispiel #2
0
        public int AddDriver(GangsDriver driver)
        {
            if (this.driverSet.Count >= maxDriverSize)
            {
                throw new IndexOutOfRangeException();
            }

            GangsDriverSet tmp = new GangsDriverSet(driver);

            this.driverSet.Add(tmp);

            return(this.driverSet.IndexOf(tmp));
        }
Beispiel #3
0
 public GangsDriverSet(GangsDriver driver)
 {
     this.driver = driver;
     this.thread = null;
 }
Beispiel #4
0
 public GangsDriverSet(GangsDriver driver)
 {
     this.driver = driver;
     this.thread = null;
 }