Ejemplo n.º 1
0
        private void DashboardShowBt_Click(object sender, EventArgs e)
        {
            List <String> signallist = new List <string>();

            foreach (TreeListViewItem item in treeListView1.CheckedItems)
            {
                if (!item.Text.StartsWith("messageName"))
                {
                    string sig = "";
                    foreach (ListViewSubItem sub in item.SubItems)
                    {
                        sig += (" " + sub.Text);
                    }

                    signallist.Add(sig);
                }
            }
            gsForm                = new GaugeboardShow();
            delegateSendData     += new DelegateSendData(gsForm.UpdateData);
            delegateSendSigForGs += new DelegateSendSig(gsForm.UpdateSignal);
            gsForm.Show();
            delegateSendSigForGs(signallist);
            //DashboardShow dsForm = new DashboardShow();
            //dsForm.Show();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            //LedDigitalDemo.MainWindow mw=LedDigitalDemo.MainWindow;
            //Uri uri=new Uri("MainWindow.xaml", UriKind.Relative);
            List <String> signallist = new List <string>();

            foreach (TreeListViewItem item in treeListView1.CheckedItems)
            {
                if (!item.Text.StartsWith("messageName"))
                {
                    string sig = "";
                    foreach (ListViewSubItem sub in item.SubItems)
                    {
                        sig += (" " + sub.Text);
                    }

                    signallist.Add(sig);
                }
            }

            ledwindow             = new CANToolApp.MainWindow();
            delegateSendData     += new DelegateSendData(ledwindow.UpdateData);
            delegateSendSigForGs += new DelegateSendSig(ledwindow.UpdateSignal);
            ledwindow.Show();
            delegateSendSigForGs(signallist);
        }
Ejemplo n.º 3
0
        private void CurveShowBt_Click(object sender, EventArgs e)
        {
            List <String> signallist = new List <string>();

            foreach (TreeListViewItem item in treeListView1.CheckedItems)
            {
                if (!item.Text.StartsWith("messageName"))
                {
                    signallist.Add(item.Text);
                }
            }
            csForm            = new CurveShow();
            delegateSendData += new DelegateSendData(csForm.UpdateData);
            delegateSendSig  += new DelegateSendSig(csForm.UpdateSignal);
            csForm.Show();
            delegateSendSig(signallist);
        }