예제 #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);
 }