コード例 #1
0
 public static void ShowPopup(Form owner)
 {
     using (var news = new NewsPopup())
     {
         news.StartPosition = FormStartPosition.CenterParent;
         news.ShowDialog(owner);
     }
 }
コード例 #2
0
        public static void ShowPopup(Form owner)
        {
            if (Settings.Default.MiscFeedbackNagNeverShow)
            {
                return;
            }

            using (var news = new NewsPopup())
            {
                news.StartPosition = FormStartPosition.CenterParent;
                news.ShowDialog(owner);
            }
        }
コード例 #3
0
        public static void ShowPopup(Form owner)
        {
            // TODO change when adding a new message
            if (Program.PreviousVersion != null && Program.PreviousVersion.Major >= 4)
            {
                return;
            }

            using (var news = new NewsPopup())
            {
                news.StartPosition = FormStartPosition.CenterParent;
                news.ShowDialog(owner);
            }
        }