static void OnSyncing(object sender, SyncEventArgs e) { Console.WriteLine("{0:D2}: {1}", e.Id, e.Name); }
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); } }