Ejemplo n.º 1
0
        private void BtnCurrentAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!_loaded)
            {
                return;
            }

            var pi = new PrefixInput();

            pi.UnitText      = "Ω";
            pi.LabelText     = "R" + _ccounter;
            pi.ValueChanged += PrefixInput_ValueChanged2;
            pi.Value         = 1;
            SpCurrentItems.Children.Add(pi);
            _ccounter++;
            PrefixInput_ValueChanged2(null, null);
        }
Ejemplo n.º 2
0
        private void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            if (!_loaded)
            {
                return;
            }

            PrefixInput pi = new PrefixInput();

            pi.UnitText      = "Ω";
            pi.LabelText     = "R" + _counter.ToString();
            pi.ValueChanged += PrefixInput_ValueChanged;
            pi.Value         = 1;
            SpItems.Children.Add(pi);
            _counter++;
            PrefixInput_ValueChanged(null, null);
        }
Ejemplo n.º 3
0
        private void BtnAdd_Click(object sender, RoutedEventArgs e)
        {
            PrefixInput pi = new PrefixInput();

            pi.LabelText     = "R";
            pi.UnitText      = "Ω";
            pi.Value         = 1;
            pi.ValueChanged += pi_ValueChanged;

            if (Tabs.SelectedIndex == 0)
            {
                pi.UnitText += _serialc.ToString();
                Serial.Children.Add(pi);
                ++_serialc;
            }
            else
            {
                pi.UnitText += _paralellc.ToString();
                Paralell.Children.Add(pi);
                ++_paralellc;
            }
            pi_ValueChanged(null, null);
        }