예제 #1
0
        private void ShowChannel(MMEChannelModel chnModel)
        {
            oxyDiagram.DataContext = null;
            oxyDiagram.DataContext = chnModel;

            ShowChartControl();
        }
예제 #2
0
        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);
        }
예제 #3
0
        private void LoadChannelAttributes(MMEChannelModel chnModel)
        {
            if (!chnModel.ActualChannel.IsLoaded)
            {
                chnModel.ActualChannel.Load();
            }

            attributeDataGrid.ItemsSource = chnModel.ActualChannel.Attributes;
        }