예제 #1
0
 static void OnSyncing(object sender, SyncEventArgs e)
 {
     Console.WriteLine("{0:D2}: {1}", e.Id, e.Name);
 }
예제 #2
0
 private void OnSyncing(int id, string name, long size)
 {
     if(Syncing != null)
     {
         var args = new SyncEventArgs() { Id = id, Name = name, Size = size };
         Syncing(this, args);
     }
 }