private static TimelineNoticeOverlay CreateDesignOverlay()
        {
            var overlay = new TimelineNoticeOverlay()
            {
                DummyMode = true
            };

            return(overlay);
        }
 public static void HideDesignOverlay()
 {
     if (designOverlay != null)
     {
         designOverlay.OverlayVisible = false;
         designOverlay.Hide();
         designOverlay.Close();
         designOverlay = null;
     }
 }
 public static void CloseNotice()
 {
     WPFHelper.Invoke(() =>
     {
         if (NoticeView != null)
         {
             NoticeView.DataContext = null;
             NoticeView.Close();
             NoticeView = null;
         }
     });
 }
        public static void ShowDesignOverlay(
            TimelineStyle testStyle = null)
        {
            if (designOverlay == null)
            {
                dummyNoticeList = TimelineVisualNoticeModel.CreateDummyNotices(testStyle);

                designOverlay = CreateDesignOverlay();
            }

            designOverlay.Show();
            designOverlay.OverlayVisible = true;

            foreach (var notice in dummyNoticeList)
            {
                designOverlay.AddNotice(notice, true);
            }
        }
        public static void ShowNotice()
        {
            if (!TimelineSettings.Instance.Enabled ||
                !TimelineSettings.Instance.OverlayVisible)
            {
                return;
            }

            WPFHelper.Invoke(() =>
            {
                if (NoticeView == null)
                {
                    NoticeView = new TimelineNoticeOverlay();
                    NoticeView.Show();
                }

                ChangeClickthrough(TimelineSettings.Instance.Clickthrough);
            });
        }