Beispiel #1
0
 public FormRestart(int lineNum, BaseInfoCollection collection)
     : this()
 {
     if (lineNum < 0)
     {
         lineNum = 0;
     }
     else if (lineNum > collection.Count - 1)
     {
         lineNum = collection.Count - 1;
     }
     ReStartLineNumInfo info = new ReStartLineNumInfo { LineNum = lineNum + 1 };
     this.bindingSource1.DataSource = info;
     this.collection = collection;
 }
Beispiel #2
0
        public FormRestart(int lineNum, BaseInfoCollection collection)
            : this()
        {
            if (lineNum < 0)
            {
                lineNum = 0;
            }
            else if (lineNum > collection.Count - 1)
            {
                lineNum = collection.Count - 1;
            }
            ReStartLineNumInfo info = new ReStartLineNumInfo {
                LineNum = lineNum + 1
            };

            this.bindingSource1.DataSource = info;
            this.collection = collection;
        }