Example #1
0
        /// <summary>
        /// pop up the parameters, allows you to pausing the application to do so (also can skip prompt)
        /// </summary>
        /// <param name="pauseapp"></param>
        public static void Popup(Response displayParamsAvail, bool pauseapp, bool skip)
        {
            if (skip)
            {
                return;
            }
            ParamPrompt p = new ParamPrompt(displayParamsAvail);

            r = displayParamsAvail;
            p.Invalidate(true);
            if (pauseapp)
            {
                if (p.ShowDialog() == DialogResult.OK)
                {
                }
                else
                {
                    displayParamsAvail.isValid = false;
                }
            }
            else
            {
                p.FormClosing += new FormClosingEventHandler(p_FormClosing);
                p.Show();
            }
            p.Invalidate(true);
        }
Example #2
0
        static void p_FormClosing(object sender, FormClosingEventArgs e)
        {
            ParamPrompt p = (ParamPrompt)sender;

            if (p.DialogResult != DialogResult.OK)
            {
                r.isValid = false;
            }
        }
Example #3
0
        /// <summary>
        /// pop up the parameters, allows you to pausing the application to do so (also can skip prompt)
        /// </summary>
        /// <param name="pauseapp"></param>
        public static void Popup(Response displayParamsAvail, bool pauseapp, bool skip)
        {
            if (skip) return;
            ParamPrompt p = new ParamPrompt(displayParamsAvail);

            p.Invalidate(true);
            if (pauseapp)
                p.ShowDialog();
            else
                p.Show();
            p.Invalidate(true);
        }
Example #4
0
        /// <summary>
        /// pop up the parameters, allows you to pausing the application to do so (also can skip prompt)
        /// </summary>
        /// <param name="pauseapp"></param>
        public static void Popup(Response displayParamsAvail, bool pauseapp, bool skip)
        {
            if (skip)
            {
                return;
            }
            ParamPrompt p = new ParamPrompt(displayParamsAvail);

            p.Invalidate(true);
            if (pauseapp)
            {
                p.ShowDialog();
            }
            else
            {
                p.Show();
            }
            p.Invalidate(true);
        }
Example #5
0
 /// <summary>
 /// pop up the parameters, allows you to pausing the application to do so (also can skip prompt)
 /// </summary>
 /// <param name="pauseapp"></param>
 public static void Popup(Response displayParamsAvail, bool pauseapp, bool skip)
 {
     if (skip) return;
     ParamPrompt p = new ParamPrompt(displayParamsAvail);
     r = displayParamsAvail;
     p.Invalidate(true);
     if (pauseapp)
     {
         if (p.ShowDialog() == DialogResult.OK)
         {
         }
         else
             displayParamsAvail.isValid = false;
     }
     else
     {
         p.FormClosing += new FormClosingEventHandler(p_FormClosing);
         p.Show();
     }
     p.Invalidate(true);
 }