/// <summary>
        /// methods for getting ready panels based on Args types
        /// </summary>
        /// <param name="args"></param>
        public void SignalLayout(SignalPanelArgs args)
        {
            panelChart.Children.Clear();
            if (args == null)
            {
                lblCurrentlyChosen.Content = "";
                return;
            }
            lblCurrentlyChosen.Content = args.Name;
            for (int i = 0; i < args.ChartCount; ++i)
            {
                WindowsForms.ScrollViewerWindowsFormsHost host = new WindowsForms.ScrollViewerWindowsFormsHost();
                //WindowsFormsHost host = new WindowsFormsHost();
                host.Margin = new Thickness(4);
                host.Child = args.GetChart(i);

                //DockPanel.SetDock(host, Dock.Bottom);

                this.panelChart.Children.Add(host);

                //for (int p = 0; p < 20; ++p)
                //{
                //    Button bt = new Button();
                //    bt.Height = 30;
                //    bt.Width = 40;
                //    panelChart.Children.Add(bt);
                //}

            }
            //this.panelChart.Children.Add(args.GetWChart(0));
        }
Exemplo n.º 2
0
 private void SignalLayoutArgsUpdate(string name)
 {
     signalLayoutArgs[name] = new SignalPanelArgs(signals[name],signalWaveletShowed[name],signalPDMData[current] == null ? false : true);
 }