示例#1
0
        private ConfirmDialogForm GetConfirmStatus(string confirmMessage)
        {
            var confirm = new ConfirmDialogForm(confirmMessage);

            SoundPlayer.PlaySettingsSound();
            confirm.StartPosition         = FormStartPosition.Manual;
            confirm.Location              = this.Location;
            confirm.StartPosition         = FormStartPosition.CenterParent;
            confirm.BackgroundImageLayout = ImageLayout.Stretch;
            this.Enabled = false;
            confirm.ShowDialog(this);
            return(confirm);
        }
示例#2
0
        private ConfirmDialogForm GetConfirmStatus(string confirmMessage)
        {
            var confirm = new ConfirmDialogForm(confirmMessage);

            confirm.YesButton.Text            = "Ok";
            confirm.NoButton.Enabled          = false;
            confirm.NoButton.Visible          = false;
            confirm.ConfirmTextLabel.Location = new Point(14, 10);
            confirm.StartPosition             = FormStartPosition.Manual;
            confirm.Location              = this.Location;
            confirm.StartPosition         = FormStartPosition.CenterParent;
            confirm.BackgroundImageLayout = ImageLayout.Stretch;
            this.Enabled = false;
            confirm.ShowDialog(this);
            return(confirm);
        }