private InformationEntry(string message, InformationEntryType entryType, bool showBusy, int?displayLengthInSeconds) { Message = message; EntryType = entryType; ShowBusy = showBusy; DisplayLengthInSeconds = displayLengthInSeconds; }
private InformationEntry(string message, bool isBusy, InformationEntryType entryType, int?lengthInSeconds) { Message = message; IsBusy = isBusy; EntryType = entryType; LengthInSeconds = lengthInSeconds; }
private static Brush AdaptBrush(InformationEntryType entryType) { switch (entryType) { case InformationEntryType.Info: { return(Brushes.Black); } case InformationEntryType.Success: { return(Brushes.DarkGreen); } case InformationEntryType.Error: { return(Brushes.DarkRed); } default: { return(Brushes.Black); } } }