Пример #1
0
 /// <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;
     }));
 }
Пример #2
0
 /// <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;
     });
 }
Пример #3
0
        /// <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;
            }
        }
Пример #5
0
 /// <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;
         }
     });
 }
Пример #6
0
        /// <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);
                }
            }
        }
Пример #7
0
 public abstract void UpdateData(Data.ItemBase item);
Пример #8
0
 public abstract void ReadItem(Data.ItemBase item);
Пример #9
0
 public virtual void UnloadItem(Data.ItemBase item)
 {
 }
Пример #10
0
 protected override void UpdateMe(Data.ItemBase item)
 {
 }
Пример #11
0
 public void UpdateData(Data.ItemBase data)
 {
     this.Title.Text = data.Title;
 }
Пример #12
0
 protected override void UpdateMe(Data.ItemBase item)
 {
     //None necessary
 }