Пример #1
0
 private static void SendChangeMsg(object sender, ComponentEventArgs e)
 {
   if (!(sender is ServiceModule)) throw new ArgumentException(NOT_SERVICE_MODULE);
   var module = sender as ServiceModule;
   Console.WriteLine(EVENT_MSG_TEMPLATE, e.ComponentName, e.Action, module.ModuleName);
 }
Пример #2
0
 private void m_DetachHandler(object sender, ComponentEventArgs e) => SendChangeMsg(sender, e);