Example #1
0
 private static Color ToColor(LateBindColors value) {
     switch (value) {
         case LateBindColors.Empty:
             return Color.Empty;
         case LateBindColors.Window:
             return SystemColors.Window;
         case LateBindColors.WindowText:
             return SystemColors.WindowText;
     }
     Debug.Assert(false, "should not reach here");
     return Color.Empty;
 }
Example #2
0
        private static Color ToColor(LateBindColors value)
        {
            switch (value)
            {
            case LateBindColors.Empty:
                return(Color.Empty);

            case LateBindColors.Window:
                return(SystemColors.Window);

            case LateBindColors.WindowText:
                return(SystemColors.WindowText);
            }
            Debug.Assert(false, "should not reach here");
            return(Color.Empty);
        }