示例#1
0
 public void Assign(ControlDTO entity)
 {
     ID = entity.ID;
     Name = entity.Name;
     Description = entity.Description;
     Date = entity.Date;
     MaxMark = entity.MaxMark;
 }
        public ControlChatViewModel(IUserInterop userInterop, IControllerInterop controllerInterop, Dispatcher dispatcher, ControlDTO control)
            : base(userInterop, controllerInterop, dispatcher)
        {
            this.messages = new ObservableCollection<ControlMessageDTO>();
            this.messagesRO = new ReadOnlyObservableCollection<ControlMessageDTO>(this.messages);

            this.Control = control;
        }
示例#3
0
 public Control(ControlDTO control)
 {
     Assign(control);
 }
示例#4
0
 public ControlModel(ControlDTO control)
     : base(control)
 {
     this.Assign(control);
 }