Ejemplo n.º 1
0
        private void VariableResistance_ValueChanged(object sender, EventArgs e)
        {
            GeneralComponent Load = MainCircuit.Main.GetCopyOfSubList()[0];

            Resistance = (sender as TrackBar).Value;
            Load.AssignResistance(Resistance);
            CalculatePower();
            RefreshDiagram();
        }
        private void ResistanceSlider_ValueChanged(object sender, EventArgs e)
        {
            GeneralComponent Load = MainCircuit.Main.GetCopyOfSubList()[0];

            Resistance           = (sender as TrackBar).Value;
            ResistanceLabel.Text = PrefixDouble(Resistance, 'Ω');
            Load.AssignResistance(Resistance);
            UpdateCurrent();
            RefreshDiagram();
        }