示例#1
0
        public void Push(int Total)
        {
            RepeaterCounter counter = new RepeaterCounter();

            counter.Total   = Total;
            counter.Current = 0;

            this.stack.Push(counter);
        }
示例#2
0
        public void Repeater_Test()
        {
            RepeaterCounter counter = new RepeaterCounter(1);

            counter.Load("826,1;250,3;56,3;");
            int value = counter[1000];

            RepeaterCounter counter2 = new RepeaterCounter(1);

            counter2.Load("250,3");
            int value2 = counter[1000];
            int value3 = counter[250];
        }