public override void Read(KanbanItem kanban, WtTaskProperty property, ValueElement task, TaskState state, ShowSetting setting, ApiMissionVnextKanbanContent data) { kanban.State = new Models.TaskState { Name = state.Name, Foreground = WtColorHelper.GetNewColor(state.Color), BoldGlyph = WtIconHelper.GetBoldGlyph(state.Type) }; }
protected void SetColor(KanbanItemProperty kbp, string color) { if (color == null) { kbp.Foreground = WtColorHelper.GetSolidColorBrush("#aaaaaa"); kbp.Background = WtColorHelper.GetSolidColorBrush("#33aaaaaa"); } else { string newColor = WtColorHelper.GetNewColor(color); kbp.Foreground = WtColorHelper.GetSolidColorBrush(newColor); kbp.Background = WtColorHelper.GetSolidColorBrush(newColor.Insert(1, "33")); } }