private void RemoveNetworkMachine(MachineDescriptor networkMachine) { if (flowLayoutPanel1.InvokeRequired) { RemoveNetworkMachineDelegate d = RemoveNetworkMachine; this.Invoke(d, new object[] { networkMachine }); } else { flowLayoutPanel1.Controls.Remove(networkMachine); } }
private void AddNetworkMachine(NetworkMachineDTO networkMachine) { if (flowLayoutPanel1.InvokeRequired) { AddNetworkMachineDelegate d = AddNetworkMachine; this.Invoke(d, new object[] { networkMachine }); } else { var md = new MachineDescriptor(networkMachine) {LastUpdated = DateTime.Now}; md.SetComputerIcon(imageListCompImages.Images["green"]); flowLayoutPanel1.Controls.Add(md); } }
private void AddNetworkMachine(NetworkMachineDTO networkMachine) { if (flowLayoutPanel1.InvokeRequired) { AddNetworkMachineDelegate d = AddNetworkMachine; this.Invoke(d, new object[] { networkMachine }); } else { var md = new MachineDescriptor(networkMachine) { LastUpdated = DateTime.Now }; md.SetComputerIcon(imageListCompImages.Images["green"]); flowLayoutPanel1.Controls.Add(md); } }