virtual public void Loop(object obj, TnEventArgs args) { LoopEventType lex = args.Flags; // Globe.stat(args.Flags); Globe.cstat(ConsoleColor.Red, args.Flags); // Globe.cstat(ConsoleColor.Red,args.tn.Text); if ((uint)(args.Flags ^ LoopEventType.ListPath) == 1) { } if ((uint)(args.Flags ^ LoopEventType.CountItems) == 1) { incr++; } if ((uint)(args.Flags ^ LoopEventType.ShowProgress) == 1) { pbar.Value = incr + 1; } if ((uint)(args.Flags ^ LoopEventType.ShowDebug) == 1) { Globe.cstat(ConsoleColor.DarkYellow, "{0}", args.tn.Text); } if ((args.Flags ^ LoopEventType.LowPriority) == LoopEventType.ListPath) { Application.DoEvents(); } // DoIncr(obj,args); switch (args.Flags) { case LoopEventType.ListPath:; break; case LoopEventType.CountItems: incr++; break; case LoopEventType.ShowProgress: pbar.Value = incr + 1; break; case LoopEventType.ShowDebug: Globe.cstat(ConsoleColor.DarkYellow, "{0}", args.tn.Text);; break; default: Globe.stat(incr); break; } return; }
public TnEventArgs(TreeNode tnx, LoopEventType flags) : this(tnx) { Flags = flags; }
public TreeCall(TreeView tv, ToolStripProgressBar pgbar, TreeCall.LoopEventType etype) : this(tv, pgbar) { eventType = etype; }