Exemplo n.º 1
0
        private void ShowChannel(MMEChannelModel chnModel)
        {
            oxyDiagram.DataContext = null;
            oxyDiagram.DataContext = chnModel;

            ShowChartControl();
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        private void LoadChannelAttributes(MMEChannelModel chnModel)
        {
            if (!chnModel.ActualChannel.IsLoaded)
            {
                chnModel.ActualChannel.Load();
            }

            attributeDataGrid.ItemsSource = chnModel.ActualChannel.Attributes;
        }