Пример #1
0
 public MonapiWorkItem(WorkItem item)
 {
     this.Tag = item.WorkDay.Day;
     this.Von = item.Start.ToString();
     this.Bis = item.End.ToString();
     this.Projekt = int.Parse(item.Project);
     this.Position = item.Position;
     this.Beschreibung = item.Description;
 }
Пример #2
0
 public void AddWorkItem(WorkItem workItem)
 {
     this.items.Add(workItem);
       workItem.WorkDay = this;
 }
Пример #3
0
 public JSONWorkItem(WorkItem item)
 {
     this.Day = item.WorkDay.Day;
     this.Month = item.WorkDay.Month;
     this.Year = item.WorkDay.Year;
     this.Start = item.Start.ToString();
     this.End = item.End.ToString();
     this.Project = item.Project;
     this.Position = item.Position;
     this.Description = item.Description;
 }
Пример #4
0
 private static bool GetTextBoxWorkItemInfo(object o, out WorkItem workItem, out TextBox tb, out string wholeString)
 {
     workItem = null;
     tb = null;
     wholeString = null;
     var bindedValues = o as IEnumerable;
     if (bindedValues == null)
     {
         return false;
     }
     workItem = bindedValues.OfType<object>().ElementAtOrDefault(0) as WorkItem;
     tb = bindedValues.OfType<object>().ElementAtOrDefault(1) as TextBox;
     if (workItem == null || tb == null)
     {
         return false;
     }
     tb.Focus();
     wholeString = tb.Text;
     return true;
 }