Beispiel #1
0
        public WorkData(WorkDemView WorkDemView, long contractId)
        {
            workId          = WorkDemView.Id;
            this.contractId = contractId;
            workDem         = Helper.Diffucults.FindIndex(x => x == WorkDemView.Diff);
            size            = WorkDemView.Size;
            string s = "";

            WorkDemView.Commentaries.Where(x => x.IsYes).ToList().ForEach(x =>
            {
                s += x.Commentary.Id + ",";
            });
            if (s != "")
            {
                s.Remove(s.Length - 1);
            }
            commentIds = s;
        }
Beispiel #2
0
 public WorkProperties(WorkDemView WorkDemView)
 {
     InitializeComponent();
     DataContext = WorkDemView;
 }
 public CustomResultItem(WorkDemView WorkDemView)
 {
     InitializeComponent();
     DataContext = WorkDemView;
 }