private void RemoveC_Click(object sender, EventArgs e) { GeneralComponent ParraComponentList = MainCircuit.Main.GetCopyOfSubList()[0]; if (ParraComponentList.GetType() != 'b') { ParraComponentList.RemoveComponent(ParraComponentList.GetCopyOfSubList()[0]); RefreshDiagram(); } UpdatePointers(); }
private void RemoveC_Click(object sender, EventArgs e) { GeneralComponent ParraComponentList = MainCircuit.Main; if (ParraComponentList.GetCopyOfSubList().Count != 1) { ParraComponentList.RemoveComponent(ParraComponentList.GetCopyOfSubList()[0]); } MainCircuit.Main.CalculateResistance(); RefreshDiagram(); UpdatePointers(); }