예제 #1
0
파일: Form1.cs 프로젝트: SoftCreator/Remoft
 private void RemoveNetworkMachine(MachineDescriptor networkMachine)
 {
     if (flowLayoutPanel1.InvokeRequired)
     {
         RemoveNetworkMachineDelegate d = RemoveNetworkMachine;
         this.Invoke(d, new object[] { networkMachine });
     }
     else
     {
         flowLayoutPanel1.Controls.Remove(networkMachine);
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: SoftCreator/Remoft
 private void RemoveNetworkMachine(MachineDescriptor networkMachine)
 {
     if (flowLayoutPanel1.InvokeRequired)
     {
         RemoveNetworkMachineDelegate d = RemoveNetworkMachine;
         this.Invoke(d, new object[] { networkMachine });
     }
     else
     {                
         flowLayoutPanel1.Controls.Remove(networkMachine);
     }
 }
예제 #3
0
파일: Form1.cs 프로젝트: SoftCreator/Remoft
 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);
     }
 }
예제 #4
0
파일: Form1.cs 프로젝트: SoftCreator/Remoft
 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);
     }
 }