Ejemplo n.º 1
0
 public Voltmeter(VoltMeter voltmeterClass_)
 {
     InitializeComponent();
     voltmeterClass             = voltmeterClass_;
     showingData                = voltmeterClass.showingData;
     this.textBlock.DataContext = showingData;
 }
Ejemplo n.º 2
0
        public Ohmmeter(OhmMeter ohmmterClass_)
        {
            InitializeComponent();
            ohmmterClass = ohmmterClass_;
            showingData  = ohmmterClass.showingData;
            this.textBlock.DataContext = showingData;

            //line = new Line();
            //line.Stroke = Brushes.Green;
            //line.StrokeThickness = 10;
            //line.X1 = 0;
            //line.Y1 = 0;
            //line.X2 = 100;
            //line.Y2 = 100;
            //ohmCanvas.Children.Add(line);
        }