// Token: 0x06001AB5 RID: 6837 RVA: 0x0004EBA4 File Offset: 0x0004CDA4
        public static DialogResult smethod_10(string message, string title, Enum90 dialogType, bool enabledCloseButton)
        {
            Enum121 position = Enum121.const_0;

            Enum39[] buttons = new Enum39[1];
            return(DialogBox.smethod_13(message, title, dialogType, enabledCloseButton, position, buttons));
        }
        // Token: 0x06001AAD RID: 6829 RVA: 0x0004E7CC File Offset: 0x0004C9CC
        public static void smethod_2(string text, string caption, Enum121 position)
        {
            Enum90 dialogType         = Enum90.const_0;
            bool   enabledCloseButton = true;

            Enum39[] buttons = new Enum39[1];
            DialogBox.smethod_13(text, caption, dialogType, enabledCloseButton, position, buttons);
        }
        // Token: 0x06001AB9 RID: 6841 RVA: 0x0004EC04 File Offset: 0x0004CE04
        public DialogBox(string message, string title, Enum90 dialogType, Font font, bool enabledCloseButton, Enum121 position, params Enum39[] buttons)
        {
            EventHandler eventHandler  = null;
            EventHandler eventHandler2 = null;
            EventHandler eventHandler3 = null;
            EventHandler eventHandler4 = null;
            EventHandler eventHandler5 = null;
            EventHandler eventHandler6 = null;
            EventHandler eventHandler7 = null;
            EventHandler eventHandler8 = null;

            DialogBox.Class218 @class = new DialogBox.Class218();
            @class.enum90_0 = dialogType;
            base..ctor(enabledCloseButton);
            @class.dialogBox_0 = this;
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }
            if (title == null)
            {
                throw new ArgumentNullException("title");
            }
            if (buttons == null)
            {
                throw new ArgumentNullException("buttons");
            }
            if (buttons.Length == 0)
            {
                throw new ArgumentException("Must have at least one dialog box button.");
            }
            @class.enum90_0.smethod_0();
            position.smethod_0();
            foreach (Enum39 @enum in buttons)
            {
                @enum.smethod_0();
            }
            this.InitializeComponent();
            this.Text         = title;
            this.Message.Text = message;
            if (font != null)
            {
                this.Message.Font = font;
            }
            Rectangle workingArea = Screen.GetWorkingArea(Cursor.Position);

            this.IconImage.StaticImage       = true;
            this.IconImage.AnimationInterval = 25;
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(DialogBox));

            switch (@class.enum90_0)
            {
            case Enum90.const_0:
                this.IconImage.BaseImage = (Image)componentResourceManager.GetObject("InformationBubbleBitmap");
                base.Icon = (Icon)componentResourceManager.GetObject("InformationBubbleIcon");
                break;

            case Enum90.const_1:
                this.IconImage.BaseImage = (Image)componentResourceManager.GetObject("QuestionBubbleBitmap");
                base.Icon = (Icon)componentResourceManager.GetObject("QuestionBubbleIcon");
                break;

            case Enum90.const_2:
                this.IconImage.BaseImage = (Image)componentResourceManager.GetObject("WarningBubbleBitmap");
                base.Icon = (Icon)componentResourceManager.GetObject("WarningBubbleIcon");
                break;

            case Enum90.const_3:
                this.IconImage.BaseImage = (Image)componentResourceManager.GetObject("ErrorBubbleBitmap");
                base.Icon = (Icon)componentResourceManager.GetObject("ErrorBubbleIcon");
                break;
            }
            this.IconImage.method_0();
            Button button = null;

            this.LayoutPanel.SuspendLayout();
            Button button2 = null;
            Button button3 = null;

            for (int j = 0; j < buttons.Length; j++)
            {
                Enum39 enum2 = buttons[j];
                try
                {
                    button          = new Button();
                    button.Anchor   = (AnchorStyles.Bottom | AnchorStyles.Right);
                    button.Location = new Point(0, 0);
                    button.Margin   = new Padding(0, 0, (j < buttons.Length - 1) ? 3 : 0, 0);
                    button.UseVisualStyleBackColor = true;
                    button.Size     = new Size(75, 23);
                    button.TabIndex = j;
                    switch (enum2)
                    {
                    case Enum39.const_0:
                    {
                        if (button2 == null)
                        {
                            button2 = button;
                        }
                        button.Text = "OK";
                        Control control = button;
                        if (eventHandler == null)
                        {
                            eventHandler = new EventHandler(this.method_1);
                        }
                        control.Click += eventHandler;
                        break;
                    }

                    case Enum39.const_1:
                    {
                        if (button3 == null)
                        {
                            button3 = button;
                        }
                        button.Text = "Cancel";
                        Control control2 = button;
                        if (eventHandler3 == null)
                        {
                            eventHandler3 = new EventHandler(this.method_3);
                        }
                        control2.Click += eventHandler3;
                        break;
                    }

                    case Enum39.const_2:
                    {
                        if (button3 == null)
                        {
                            button3 = button;
                        }
                        button.Text = "Abort";
                        Control control3 = button;
                        if (eventHandler2 == null)
                        {
                            eventHandler2 = new EventHandler(this.method_2);
                        }
                        control3.Click += eventHandler2;
                        break;
                    }

                    case Enum39.const_3:
                    {
                        button.Text = "Retry";
                        Control control4 = button;
                        if (eventHandler6 == null)
                        {
                            eventHandler6 = new EventHandler(this.method_6);
                        }
                        control4.Click += eventHandler6;
                        break;
                    }

                    case Enum39.const_4:
                    {
                        button.Text = "Ignore";
                        Control control5 = button;
                        if (eventHandler4 == null)
                        {
                            eventHandler4 = new EventHandler(this.method_4);
                        }
                        control5.Click += eventHandler4;
                        break;
                    }

                    case Enum39.const_5:
                    {
                        if (button2 == null)
                        {
                            button2 = button;
                        }
                        button.Text = "Yes";
                        Control control6 = button;
                        if (eventHandler7 == null)
                        {
                            eventHandler7 = new EventHandler(this.method_7);
                        }
                        control6.Click += eventHandler7;
                        break;
                    }

                    case Enum39.const_6:
                    {
                        button.Text = "No";
                        Control control7 = button;
                        if (eventHandler5 == null)
                        {
                            eventHandler5 = new EventHandler(this.method_5);
                        }
                        control7.Click += eventHandler5;
                        break;
                    }
                    }
                    this.LayoutPanel.Controls.Add(button);
                }
                catch
                {
                    if (button != null)
                    {
                        button.Dispose();
                    }
                    throw;
                }
            }
            this.LayoutPanel.ResumeLayout(true);
            if (button2 != null)
            {
                base.AcceptButton = button2;
            }
            if (button3 != null)
            {
                base.CancelButton = button3;
            }
            int  num           = SystemInformation.FixedFrameBorderSize.Width * 2;
            int  num2          = SystemInformation.FixedFrameBorderSize.Height * 2;
            int  val           = 24 + this.LayoutPanel.Height + 6 + this.IconImage.Height + num2 + SystemInformation.CaptionHeight;
            int  val2          = 24 + this.LayoutPanel.Width + 6 + this.IconImage.Width + num;
            int  width         = (int)((double)(workingArea.Width - num - this.IconImage.Width - 6 - 24) * 0.6);
            int  num3          = (int)((double)(workingArea.Height - num2 - SystemInformation.CaptionHeight - this.LayoutPanel.Height - 6 - 24) * 0.9);
            Size preferredSize = this.Message.GetPreferredSize(new Size(width, num3));

            base.Size = new Size(Math.Max(val2, num + 24 + this.IconImage.Width + 6 + preferredSize.Width), Math.Max(val, Math.Min(num2 + SystemInformation.CaptionHeight + 6 + 24 + this.LayoutPanel.Height + preferredSize.Height, num3)));
            this.LayoutPanel.Location = new Point(this.MainPanel.Width / 2 - this.LayoutPanel.Width / 2, this.LayoutPanel.Location.Y);
            if (eventHandler8 == null)
            {
                eventHandler8 = new EventHandler(@class.method_0);
            }
            base.Load += eventHandler8;
            switch (position)
            {
            case Enum121.const_0:
                base.StartPosition = FormStartPosition.CenterScreen;
                return;

            case Enum121.const_1:
                base.StartPosition = FormStartPosition.Manual;
                base.Location      = new Point(workingArea.Width / 2 - base.Width / 2 + workingArea.X, workingArea.Height - base.Height + workingArea.Y - (int)((double)workingArea.Height * 0.05));
                return;

            case Enum121.const_2:
                base.StartPosition = FormStartPosition.CenterParent;
                return;

            default:
                return;
            }
        }
        // Token: 0x06001AB8 RID: 6840 RVA: 0x0004EBC4 File Offset: 0x0004CDC4
        public static DialogResult smethod_13(string message, string title, Enum90 dialogType, bool enabledCloseButton, Enum121 position, params Enum39[] buttons)
        {
            DialogResult result;

            using (DialogBox dialogBox = new DialogBox(message, title, dialogType, null, enabledCloseButton, position, buttons))
            {
                result = dialogBox.ShowDialog();
            }
            return(result);
        }