/// <summary>
 /// Creates new instance of <see cref="TcoObjectMessageHandler"/>
 /// </summary>
 /// <param name="context">TcoObject's context</param>
 /// <param name="obj">TcoObject</param>
 public TcoObjectMessageHandler(IsTcoContext context, IsTcoObject obj)
 {
     _context = context;
     _obj     = obj;
 }
 public TcoObjectMessageHandler()
 {
     _context = new TcoContext();
     _obj     = new TcoObject();
 }
Пример #3
0
 /// <summary>
 /// Creates new instance of <see cref="TcoDiagnosticsViewModel"/>
 /// </summary>
 /// <param name="tcoObject">TcoObject to be observed by this diagnostics</param>
 public TcoDiagnosticsViewModel(IsTcoObject tcoObject)
 {
     _tcoObject = tcoObject;
     CreateCommands();
 }
Пример #4
0
 partial void PexConstructor(IVortexObject parent, string readableTail, string symbolTail)
 {
     _context = parent.GetParent <IsTcoContext>();
     _context?.AddMessage(this);
     _parentObject = parent.GetParent <IsTcoObject>();
 }
Пример #5
0
 public TcoDiagnosticsViewModel(IsTcoObject tcoObject)
 {
     _tcoObject = tcoObject;
     this.UpdateMessagesCommand = new RelayCommand(a => this.UpdateMessages(), (x) => !this.AutoUpdate && !this.DiagnosticsRunning);
 }