예제 #1
0
        public void Trigger(string html, int width, int height)
        {
            if (screenshot != null)
            {
                return;
            }

            screenshot = new FormNotificationScreenshotable(Callback, owner, plugins);
            screenshot.LoadNotificationForScreenshot(new TweetNotification(string.Empty, string.Empty, string.Empty, html, 0, string.Empty, string.Empty), width, height);
            screenshot.Show();
            timeout.Start();

            #if !(DEBUG && NO_HIDE_SCREENSHOTS)
            owner.IsWaiting = true;
            #endif
        }
예제 #2
0
        public void Trigger(string html, int width, int height)
        {
            if (screenshot != null)
            {
                return;
            }

            screenshot = new FormNotificationScreenshotable(Callback, owner)
            {
                CanMoveWindow = () => false
            };

            screenshot.LoadNotificationForScreenshot(new TweetNotification(string.Empty, html, 0, string.Empty, string.Empty), width, height);
            screenshot.Show();
            timeout.Start();
        }
예제 #3
0
        public void Trigger(string html, int width)
        {
            if (screenshot != null)
            {
                return;
            }

            screenshot = new FormNotificationScreenshotable(Callback, owner, plugins, html, width);
            screenshot.Show();
            timeout.Start();

            #if GEN_SCREENSHOT_FRAMES
            StartDebugger();
            #endif

            #if !NO_HIDE_SCREENSHOTS
            owner.IsWaiting = true;
            #endif
        }
예제 #4
0
 private void disposer_Tick(object sender, EventArgs e)
 {
     disposer.Stop();
     screenshot.Dispose();
     screenshot = null;
 }