private void FormLoaded(object sender, EventArgs e) { _allowDrawing = (LicenseManager.UsageMode != LicenseUsageMode.Designtime) && (Process.GetCurrentProcess().ProcessName != @"devenv"); if (_shadowForms == null) { InitialiseShadowForms(); SetShadowFormsSizes(); FlashWindowExListener.Register(_parentForm as Form); FlashWindowExListener.FlashEvent += OnFlashWindowExListenerOnFlashEvent; } else { PositionShadowForms(false); } }
public FormShellHook() { FlashWindowExListener.Register(this); FlashWindowExListener.FlashEvent += FlashExListener_FlashEvent; }