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; }
public Control(ControlDTO control) { Assign(control); }
public ControlModel(ControlDTO control) : base(control) { this.Assign(control); }