Example #1
0
        public static void Show(Form parent, string message, string tittle = "", bool dimScreen = true)
        {
            _this = new Dialog
            {
                buttons    = Buttons.Ok,
                strMessage = message,
                strHeader  = tittle,
                mainParent = parent
            };

            OverlayForm overlayForm = new OverlayForm(parent, _this, blackOut: dimScreen);

            _this.ShowDialog();
        }
Example #2
0
        public static DialogResult Show(Form parent, string message, string tittle, Buttons _buttons, bool dimScreen = true)
        {
            dialogResult = DialogResult.None;
            _this        = new Dialog
            {
                buttons    = _buttons,
                strMessage = message,
                strHeader  = tittle,
                mainParent = parent
            };
            OverlayForm overlayForm = new OverlayForm(parent, _this, blackOut: dimScreen);

            _this.ShowDialog();
            return(dialogResult);
        }