Пример #1
0
 private InformationEntry(string message, InformationEntryType entryType, bool showBusy, int?displayLengthInSeconds)
 {
     Message   = message;
     EntryType = entryType;
     ShowBusy  = showBusy;
     DisplayLengthInSeconds = displayLengthInSeconds;
 }
Пример #2
0
 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);
            }
            }
        }