Ejemplo n.º 1
0
 /// <summary>Constructor for updated module, block or record names.</summary>
 /// <param name="m"></param>
 /// <param name="b"></param>
 /// <param name="r"></param>
 public ShuffleEventArgs(string m, string b, string r)
 {
     counters = new ShuffleCounter()
     {
         Block = b, Item = r
     };
 }
Ejemplo n.º 2
0
 /// <summary>Constructor</summary>
 /// <param name="s">Message</param>
 /// <param name="tb">Total number of blocks, -1 if not updated</param>
 /// <param name="cb">Current block, -1 if not updated</param>
 /// <param name="br">Total number of records in block, -1 if not updated</param>
 /// <param name="cr">Current record within block, -1 if not updated</param>
 /// <param name="repl">Bool indicating if this message should replace last message, for "fluent updates" of progress information</param>
 public ShuffleEventArgs(string s, int tb, int cb, int br, int cr, bool repl)
 {
     msg      = s;
     counters = new ShuffleCounter()
     {
         Blocks = tb, BlockNo = cb, Items = br, ItemNo = cr
     };
     replaceLastMessage = repl;
 }