MahApps.Metro.Controls.Dialogs.MessageDialog.IsApplicable C# (CSharp) Méthode

IsApplicable() private méthode

private IsApplicable ( MessageDialogResult value ) : bool
value MessageDialogResult
Résultat bool
        private bool IsApplicable(MessageDialogResult value)
        {
            switch (value)
            {
                case MessageDialogResult.Affirmative:
                    return this.PART_AffirmativeButton.IsVisible;
                case MessageDialogResult.Negative:
                    return this.PART_NegativeButton.IsVisible;
                case MessageDialogResult.FirstAuxiliary:
                    return this.PART_FirstAuxiliaryButton.IsVisible;
                case MessageDialogResult.SecondAuxiliary:
                    return this.PART_SecondAuxiliaryButton.IsVisible;
            }

            return false;
        }
    }