public static void Pop() { if (Current != null) { datProgressBar tmp = Current; Current = Current.Prev; tmp = null; } }
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; }