예제 #1
0
 static void b_ProcessValueChanged(int value, int maxValue, ProcressAction action)
 {
     if (action == ProcressAction.ReadFromDB)
         Console.WriteLine(string.Format("Reading: Invoice {0} of {1}", value, maxValue));
     else
         Console.WriteLine(string.Format("Writing: Invoice {0} of {1}", value, maxValue));
 }
 protected virtual void OnStatusMessageChanged(string message, ProcressAction action)
 {
     if (this.StatusMessageChanged != null)
         this.StatusMessageChanged(message, action);
 }
 protected virtual void OnProcessValueChanged(int value, int maxValue, ProcressAction action)
 {
     if (this.ProcessValueChanged != null)
         this.ProcessValueChanged(value, maxValue, action);
 }