/// <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(); }
/// <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(); }
partial void PexConstructor(IVortexObject parent, string readableTail, string symbolTail) { _context = parent.GetParent <IsTcoContext>(); _context?.AddMessage(this); _parentObject = parent.GetParent <IsTcoObject>(); }
public TcoDiagnosticsViewModel(IsTcoObject tcoObject) { _tcoObject = tcoObject; this.UpdateMessagesCommand = new RelayCommand(a => this.UpdateMessages(), (x) => !this.AutoUpdate && !this.DiagnosticsRunning); }