private void RefreshMessages() { if (_vmMessages == null) { _vmMessages = new MessagesViewModel(_flMessages); MessagesListBox.DataContext = _vmMessages; MainTabControl.DataContext = _vmMessages; } LookupFieldNames(); if (_messagesRouteNameFieldName == null) return; string where = "1=1"; if (!String.IsNullOrWhiteSpace(_routeName)) where = (_messagesRouteNameFieldName + "='" + _routeName + "'"); _vmMessages.Update(_flMessages, where); // update the tab's image MessagesTabImage.Source = _vmMessages.InternalResourceTabImageSource; BindSelectedMessage(); }
public Message(MessagesViewModel vmItems) : base(vmItems) { // }