/// <summary>
        /// Set the icon
        /// </summary>
        /// <param name="icon"></param>
        private void SetStandardIcon(MessageBoxIconBA icon)
        {
            _standardIcon = icon;

            switch (icon)
            {
            case MessageBoxIconBA.Asterisk:
                _iconImage = SystemIcons.Asterisk;
                break;

            case Taxi.MessageBox.MessageBoxIconBA.Error:
                _iconImage = SystemIcons.Error;
                break;

            case MessageBoxIconBA.Exclamation:
                _iconImage = SystemIcons.Exclamation;
                break;

            case Taxi.MessageBox.MessageBoxIconBA.Information:
                _iconImage = SystemIcons.Information;
                break;

            case MessageBoxIconBA.Question:
                _iconImage = SystemIcons.Question;
                break;

            //case MessageBoxIcon.Stop:
            //    _iconImage = SystemIcons.Stop;
            //    break;
            case Taxi.MessageBox.MessageBoxIconBA.Warning:
                _iconImage = SystemIcons.Warning;
                break;

            case MessageBoxIconBA.None:
                _iconImage = null;
                break;
            }
        }
        public string Show(IWin32Window owner, string text, string caption, MessageBoxButtonsBA buttons, MessageBoxIconBA icon)
        {
            MessageBoxManager.GetMessageButton();
            _msgBox = new MessageBoxForm();
            try
            {
                if (_useSavedResponse && this.Name != null)
                {
                    string savedResponse = MessageBoxManager.GetSavedResponse(this);
                    if (savedResponse != null)
                    {
                        return(savedResponse);
                    }
                }
                _msgBox.ClearButtons();
                this.AddButtons(buttons);
                this.Caption = caption;
                this.Text    = text;
                this.Icon    = icon;
                if (owner == null)
                {
                    _msgBox.ShowDialog();
                }
                else
                {
                    _msgBox.ShowDialog(owner);
                }

                if (this.Name != null)
                {
                    if (_msgBox.AllowSaveResponse && _msgBox.SaveResponse)
                    {
                        MessageBoxManager.SetSavedResponse(this, _msgBox.Result);
                    }
                    else
                    {
                        MessageBoxManager.ResetSavedResponse(this.Name);
                    }
                }
                else
                {
                    Dispose();
                }
            }
            catch
            {
            }

            return(_msgBox.Result);
        }
 public string Show(string text, string caption, MessageBoxButtonsBA buttons, MessageBoxIconBA icon)
 {
     return(Show(null, text, caption, buttons, icon));
 }