private void ShowChannel(MMEChannelModel chnModel) { oxyDiagram.DataContext = null; oxyDiagram.DataContext = chnModel; ShowChartControl(); }
private void DisplayChannel() { MMEChannelModel chnModel = dataExplorerTreeView.SelectedItem as MMEChannelModel; if (chnModel == null) { if (selectedChannel == null) { return; } else { chnModel = selectedChannel; } } else { selectedChannel = chnModel; } LoadChannelAttributes(chnModel); chnModel.RefreshDataPoints(); ShowChannel(chnModel); }
private void LoadChannelAttributes(MMEChannelModel chnModel) { if (!chnModel.ActualChannel.IsLoaded) { chnModel.ActualChannel.Load(); } attributeDataGrid.ItemsSource = chnModel.ActualChannel.Attributes; }