public void AddWorkPlanElement()
        {
            IsWorkPlanElementEditVisible = true;
            EditedWorkPlanElement        = new WorkPlanElement();
            PrepareLists();

            EditedWorkPlanElement.Room      = RoomList.FirstOrDefault();
            EditedWorkPlanElement.Class     = ClassList.FirstOrDefault();
            EditedWorkPlanElement.StartTime = TimeList.First();
            EditedWorkPlanElement.EndTime   = TimeList.ElementAt(1);
            EditedWorkPlanElement.Worker    = Workers.FirstOrDefault();
            _selectedOperation = CrudOperation.Create;
        }
Пример #2
0
 //key is fullName: <namespace.className>
 public ClassTemplate this[string key] => ClassList.FirstOrDefault(x => x.FullName == key);