//Statements
        //--------------------------------------------------------------------
        private static void ButtonStatements(MyButtons MButtons)
        {
            if (MButtons == MyButtons.AbortRetryIgnore)
            {
                ShowIgnoreButton();
                ShowRetryButton();
                ShowAbortButton();
            }

            if (MButtons == MyButtons.OK)
            {
                ShowOKButton();
            }

            if (MButtons == MyButtons.OKCancel)
            {
                ShowCancelButton();
                ShowOKButton();
            }

            if (MButtons == MyButtons.RetryCancel)
            {
                ShowCancelButton();
                ShowRetryButton();
            }

            if (MButtons == MyButtons.YesNo)
            {
                ShowNoButton();
                ShowYesButton();
            }

            if (MButtons == MyButtons.YesNoCancel)
            {
                ShowCancelButton();
                ShowNoButton();
                ShowYesButton();
            }
            if (MButtons == MyButtons.ChooseCancel)
            {
                ShowCancelButton();
                ShowChooseButton();
            }
        }
 /// <summary>
 /// MIcon: Display MyIcon on the message box.
 /// </summary>
 public static DialogResult Show(string Message, string Title, MyButtons MButtons, MyIcon MIcon)
 {
     BuildMessageBox(Title);
     frmMessageLabel.Text = Message;
     ButtonStatements(MButtons);
     IconStatements(MIcon);
     Image imageIcon = new Bitmap(frmIcon.ToBitmap(), 32, 32);
     pIconPictureBox.Image = imageIcon;
     newMessageBox.ShowDialog();
     return direMyReturnButton;
 }
 /// <summary>
 /// RobotChooser: Display RobotChooserDataGridView on the messagebox.
 /// </summary>
 public static DialogResult Show(string Message, string Title, MyButtons MButtons, MyIcon MIcon, RobotChooser RChooser, DataTable robotDataTable)
 {
     BuildMessageBox(Title);
     frmMessageLabel.Text = Message;
     ButtonStatements(MButtons);
     IconStatements(MIcon);
     RobotChooserStatement(RChooser, robotDataTable);
     Image imageIcon = new Bitmap(frmIcon.ToBitmap(), 32, 32);
     pIconPictureBox.Image = imageIcon;
     newMessageBox.Size = new System.Drawing.Size(400, 300);
     newMessageBox.ShowDialog();
     return direMyReturnButton;
 }
 /// <summary>
 /// MButtons: Display MyButtons on the message box.
 /// </summary>
 public static DialogResult Show(string Message, string Title, MyButtons MButtons)
 {
     BuildMessageBox(Title); // BuildMessageBox method, responsible for creating the MessageBox
     frmMessageLabel.Text = Message; //Set the text of the MessageBox
     ButtonStatements(MButtons); // ButtonStatements method is responsible for showing the appropreiate buttons
     newMessageBox.ShowDialog(); // Show the MessageBox as a Dialog.
     return direMyReturnButton; // Return the button click as an Enumerator
 }