示例#1
0
        /// <summary>
        /// Gibt einen Brush für den BacklogStatus eines Items zurück
        /// </summary>
        /// <param name="status"></param>
        /// <returns></returns>
        public static Color GetBackgroundColor(ItemBacklogStatus status)
        {
            Color c;

            switch (status)
            {
            case ItemBacklogStatus.SPRINT_BACKLOG:
                c = Colors.ObjectSprintBacklog;
                break;

            default:
            case ItemBacklogStatus.PRODUCT_BACKLOG:
                c = Colors.ObjectProductBacklog;
                break;
            }
            return(c);
        }
示例#2
0
        /// <summary>
        /// Aktualisert die Daten dieser User Story und setzt sie
        /// auf die Werte der übergebenen User Story
        /// </summary>
        /// <param name="data">Die neuen Daten (muss eine User Story sein, sonst passiert nichts!</param>
        /// <param name="db"></param>
        public override void UpdateData(ItemBase data, ScrumDatabase db)
        {
            UserStory us = data as UserStory;

            if (us != null)
            {
                if (this._status != us._status)
                {
                    this._status = us._status;
                    OnProjectStatusChanged();
                }
                else
                {
                    this._status = us._status;
                }
                this._priority = us._priority;
                this.Effort.SetValue(us.Effort);
                this._text = us.Text;
                this.SetEpic(db.GetItem(us.temp_epicID) as Epic, true);

                base.UpdateData(data, db);
            }
        }
示例#3
0
 /// <summary>
 /// Gibt einen Brush für den BacklogStatus eines Items zurück
 /// </summary>
 /// <param name="status"></param>
 /// <returns></returns>
 public static Brush GetBackgroundBrush(ItemBacklogStatus status)
 {
     return(new SolidColorBrush(GetBackgroundColor(status)));
 }