Exemple #1
0
 static void OnError(object sender, ErrorEventArgs e)
 {
     Console.WriteLine("ERROR: {0}", e.Error);
 }
Exemple #2
0
 private void OnError(string error)
 {
     if(Error != null)
     {
         var args = new ErrorEventArgs() { Error = error };
         Error(this, args);
     }
 }