public AssembleState(AssembleStatus status = AssembleStatus.NONE, string defineName = "", string defineValue = "") { Status = status; DefineName = defineName; DefineValue = defineValue; StrWords = new List <string>(); }
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()); } }