private void ProcessWindowEvent(WindowEvent @event) { if ("vsWindowTypeMainWindow".Equals(@event.Window.Type)) { switch (@event.Action) { case WindowAction.Activate: Log( " ACT at {0} - {1} - {2}", @event.GetTriggeredAt(), @event.IDESessionUUID, @event.Window.Caption); break; case WindowAction.Deactivate: Log( " DEACT at {0} - {1} - {2}", @event.GetTriggeredAt(), @event.IDESessionUUID, @event.Window.Caption); break; } } }