Exemplo n.º 1
0
        private void Draw()
        {
            drawer.Clear();
            Markers         mark;
            SolidColorBrush color;

            foreach (var v in data)
            {
                switch (v.Meter)
                {
                case "Lecco":
                    mark = Markers.CIRCLE; color = Brushes.Blue;
                    break;

                case "helsinki":
                    mark = Markers.CROSS; color = Brushes.Red;
                    break;

                case "tampere":
                    mark = Markers.DIAMOND; color = Brushes.Green;
                    break;

                default:
                    mark = Markers.OTHER; color = Brushes.Orange;
                    break;
                }
                drawer.DrawDataPoint(new Point(v.X, v.Y), color, mark);
            }
        }
Exemplo n.º 2
0
 private void new_Click(object sender, RoutedEventArgs e)
 {
     cmhandler.New();
     drawer.Clear();
     //data.Clear();   // put the list here
 }
 private void new_Click(object sender, RoutedEventArgs e)
 {
     drawer.Clear();
     dataGrid1.Columns.Clear();
 }