Beispiel #1
0
        private bool ConfirmCompatibility(PackageCompatibility compatibility)
        {
            if (compatibility.IsAtLeast(PackageCompatibility.Likely))
            {
                return(true);
            }

            DialogResult result = MessageBox.Show(this,
                                                  PackageManagerFrontendRes.MsgConfirmIncompatibleOperation_Desc,
                                                  PackageManagerFrontendRes.MsgConfirmIncompatibleOperation_Caption,
                                                  MessageBoxButtons.YesNo,
                                                  MessageBoxIcon.Warning,
                                                  MessageBoxDefaultButton.Button2);

            return(result == DialogResult.Yes);
        }