Esempio n. 1
0
 public static void Pop()
 {
     if (Current != null)
     {
         datProgressBar tmp = Current;
         Current = Current.Prev;
         tmp     = null;
     }
 }
Esempio n. 2
0
        public static void Push(int start, int end, string comment)
        {
            datProgressBar tmp = new datProgressBar();

            tmp.Prev     = Current;
            tmp.StartPos = start;
            if (Current != null)
            {
                tmp.Comment = Current.Comment + "\n";
            }
            tmp.Comment += comment;
            tmp.EndPos   = (start > end) ? start : end;
            Current      = tmp;
        }