private void AsyncAddingToControl(List <Hardware> hs, List <Software> ss) { foreach (Hardware h in hs) { if (h == null) { continue; } HardwareControl hc = new HardwareControl(h); hc.Width = flpComputerHardware.Width - 25; AddControlToFlow(flpComputerHardware, hc); } String soft = ""; foreach (Software s in ss) { if (s == null) { continue; } soft += s.Name + "\n"; } //flpComputerSoftware.Controls.Count; UpdateRtbText(soft); UpdateLabelText(); }
private void DrawNewHardware(Hardware hardware) { if (hardware == null) { return; } HardwareControl hc = new HardwareControl(hardware); hc.Width = flpComputerHardware.Width - 25; flpComputerHardware.Controls.Add(hc); flpComputerHardware.Update(); this.Update(); }