Beispiel #1
0
        /// <summary>
        /// Display a Don't Ask Again dialog, returns true if he clicked Yes.
        /// </summary>
        /// <param name="language">Language to use</param>
        /// <param name="labelValue">Label string</param>
        /// <param name="againValue">The current stored boolean and reference to the new one</param>
        /// <returns></returns>
        public static ResizeType Show(string labelValue)
        {
            using (var form = new SkinSizeMismatch())
            {
                form.StartPosition = FormStartPosition.CenterParent;
                form.label1.Text   = labelValue;

                form.ShowDialog();

                return(form.Result);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Display a Don't Ask Again dialog, returns true if he clicked Yes.
        /// </summary>
        /// <param name="language">Language to use</param>
        /// <param name="labelValue">Label string</param>
        /// <param name="againValue">The current stored boolean and reference to the new one</param>
        /// <returns></returns>
        public static ResizeType Show(string labelValue)
        {
            using (var form = new SkinSizeMismatch())
            {
                form.StartPosition = FormStartPosition.CenterParent;
                form.label1.Text = labelValue;

                form.ShowDialog();

                return form.Result;
            }
        }