Esempio n. 1
0
 public AssembleState(AssembleStatus status = AssembleStatus.NONE,
                      string defineName     = "", string defineValue = "")
 {
     Status      = status;
     DefineName  = defineName;
     DefineValue = defineValue;
     StrWords    = new List <string>();
 }
Esempio n. 2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            AssembleStatus assortingStatus = (AssembleStatus)value;

            if (assortingStatus == AssembleStatus.New)
            {
                return(Brushes.Firebrick);
            }
            else if (assortingStatus == AssembleStatus.Assembling)
            {
                return(Brushes.DarkGoldenrod);
            }
            else if (assortingStatus == AssembleStatus.Finished)
            {
                return(Brushes.ForestGreen);
            }
            else
            {
                return(Brushes.Black);
            }
        }
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            AssembleStatus assortingStatus = (AssembleStatus)value;

            if (assortingStatus == AssembleStatus.New)
            {
                return("未开始");
            }
            else if (assortingStatus == AssembleStatus.Assembling)
            {
                return("指引中");
            }
            else if (assortingStatus == AssembleStatus.Finished)
            {
                return("已完成");
            }
            else
            {
                return(assortingStatus.ToString());
            }
        }