예제 #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
파일: WorkDay.cs 프로젝트: vipwolf/moni
 public void AddWorkItem(WorkItem workItem)
 {
     this.items.Add(workItem);
       workItem.WorkDay = this;
 }
예제 #3
0
파일: JSONExporter.cs 프로젝트: dotob/moni
 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
파일: MainViewModel.cs 프로젝트: dotob/moni
 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;
 }