/// <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); } }
public virtual void UpdateData(ItemBase data, ScrumDatabase db) { _title = data.Title; _visible = data.IsVisible; OnExternalDataChanged(); }