public static System.Windows.Media.Brush GetColour(ManagedCertificateHealth health, string mode = "standard") { if (health == ManagedCertificateHealth.Unknown) { return(System.Windows.Media.Brushes.SlateGray); } else if (health == ManagedCertificateHealth.Error) { return(System.Windows.Media.Brushes.IndianRed); } else if (health == ManagedCertificateHealth.Warning) { return(System.Windows.Media.Brushes.DarkOrange); } else if (health == ManagedCertificateHealth.AwaitingUser) { return(System.Windows.Media.Brushes.HotPink); } else { if (mode == "standard") { return((System.Windows.Media.Brush) ViewModel.AppViewModel.Current.GetApplication() .Resources["MahApps.Brushes.SystemControlForegroundBaseHigh"]); } else { return(System.Windows.Media.Brushes.Green); } } }
public static System.Windows.Media.Brush GetColour(ManagedCertificateHealth health) { if (health == ManagedCertificateHealth.Unknown) { return(System.Windows.Media.Brushes.SlateGray); } else if (health == ManagedCertificateHealth.Error) { return(System.Windows.Media.Brushes.Red); } else if (health == ManagedCertificateHealth.Warning) { return(System.Windows.Media.Brushes.OrangeRed); } else if (health == ManagedCertificateHealth.AwaitingUser) { return(System.Windows.Media.Brushes.HotPink); } else { return(System.Windows.Media.Brushes.Green); } }