Skybound.Gecko.PromptService.ConfirmCheck C# (CSharp) Méthode

ConfirmCheck() public méthode

public ConfirmCheck ( nsIDOMWindow aParent, string aDialogTitle, string aText, string aCheckMsg, bool &aCheckState ) : bool
aParent nsIDOMWindow
aDialogTitle string
aText string
aCheckMsg string
aCheckState bool
Résultat bool
        public bool ConfirmCheck(nsIDOMWindow aParent, string aDialogTitle, string aText, string aCheckMsg, ref bool aCheckState)
        {
            ConfirmDialog dialog = new ConfirmDialog(aText, aDialogTitle, "OK", "Cancel", null, aCheckMsg);

            DialogResult result = dialog.ShowDialog();

            aCheckState = dialog.CheckBoxChecked;

            return (result == (DialogResult)1);
        }