예제 #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                can = new CanHandler(textBox.Text, 8888);

                Thread newThread = new Thread(printData);

                newThread.Start();

                can.start();
            }
            catch (Exception error)
            {
                MessageBox.Show(error.ToString());
            }
        }
예제 #2
0
        public HeatMap(CanHandler can)
        {
            this.can    = can;
            plotWindows = new Dictionary <int, PlotWindow>();
            Dictionary <int, Datapoint> data = can.Dict;

            this.data = data;

            int[,] array = new int[, ] {
            };

            InitializeComponent();

            this.SizeToContent = SizeToContent.WidthAndHeight;

            lst.ItemsSource = ArrayToList(array);


            can.ValueAdded += Can_ValueAdded;
            //this.LayoutUpdated += HeatMap_ContentRendered;

            can.ValueChanged += Can_ValueChanged;
        }