/// <summary> /// AKtualisiert die Inhalte der Textboxen auf die Werte in den Items /// </summary> /// <param name="item"></param> public override void UpdateData(Data.ItemBase item) { this.Invoke((() => { this.Title.Text = item.Title; })); }
/// <summary> /// Aktualisiert die Inhalte des Items auf die Werte in der Textbox /// </summary> /// <param name="item"></param> public override void ReadItem(Data.ItemBase item) { this.Invoke(() => { item.Title = this.Title.Text; }); }
/// <summary> /// Aktualisiert die Darstellung des Editors /// </summary> /// <param name="item"></param> public override void UpdateData(Data.ItemBase item) { UserStory us = item as UserStory; if (us != null) { this.TitleBox.Text = us.Title; this.DescriptionBox.Text = us.Text; this.EffortBox.Text = us.Effort; } }
public void UpdateData(Data.ItemBase data) { UserStory us = data as UserStory; if (us != null) { this.EffortBox.Text = us.Effort; this.DescriptionBox.Text = us.Text; this.TitleBox.Text = us.Title; EffortSum.Visibility = us.BacklogStatus == ItemBacklogStatus.SPRINT_BACKLOG ? Visibility.Visible : Visibility.Hidden; } }
/// <summary> /// Aktualisiert die Werte des items auf die Werte in den Textboxen /// </summary> /// <param name="item"></param> public override void ReadItem(Data.ItemBase item) { this.Invoke(() => { UserStory us = item as UserStory; if (us != null) { us.Title = this.TitleBox.Text; us.Text = this.DescriptionBox.Text; } }); }
/// <summary> /// Lädt ein Item (und damit dessen ItemControls) in diese Ansicht. /// Dadurch können auch Items gefiltert werden /// </summary> /// <param name="item"></param> public virtual void LoadItem(Data.ItemBase item) { int controlsLeft = allowControls[item.GetType()]; if (controlsLeft > 0) { HaveOneRepresentation(item); } foreach (ItemControl ic in item.Representations) { if (controlsLeft > 0 && (item.IsVisible || this.ShowInvisible)) { ShowControl(ic); controlsLeft--; } else { HideControl(ic); } } }
public abstract void UpdateData(Data.ItemBase item);
public abstract void ReadItem(Data.ItemBase item);
public virtual void UnloadItem(Data.ItemBase item) { }
protected override void UpdateMe(Data.ItemBase item) { }
public void UpdateData(Data.ItemBase data) { this.Title.Text = data.Title; }
protected override void UpdateMe(Data.ItemBase item) { //None necessary }