public static PressedButton ShowDialog(Form owner, CmbBasicSettings settings,
                                               CmbCheckboxSettings checkboxSettings,
                                               CmbHyperlinkSettings hyperlinkSettings)
        {
            using (var dialog = new CustomMessageBox(settings, checkboxSettings)) //, hyperlinkSettings))
            {
                if (owner != null && !owner.IsDisposed && !owner.Disposing)
                {
                    if (owner.Visible)
                    {
                        dialog.Owner = owner;
                        owner.Select();
                        dialog.ShowDialog(owner);
                    }
                    else
                    {
                        dialog.CenterToForm(owner);
                        dialog.ShowDialog();
                    }
                }
                else
                {
                    dialog.StartPosition = FormStartPosition.CenterScreen;
                    dialog.ShowDialog();
                }

                if (dialog.Result != PressedButton.None && checkboxSettings != null)
                {
                    checkboxSettings.Result = dialog.Checked;
                }

                return(dialog.Result);
            }
        }
 public static PressedButton ShowDialog(Form owner, CmbBasicSettings settings,
                                        CmbHyperlinkSettings hyperlinkSettings)
 {
     return(ShowDialog(owner, settings, null, hyperlinkSettings));
 }