public EditComputerDialog(Computer _Computer)
 {
     computer = _Computer;
     InitializeComponent();
     textBox1.Text = computer.Name;
     try
     {
         textBox2.Text = computer.IPAddress.ToString() + ":" + computer.Port.ToString();
     }
     catch { }
 }
Esempio n. 2
0
 private void addComputerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Computer newcomputer = new Computer();
     new EditComputerDialog(newcomputer).ShowDialog();
     Solution.AddComputer(newcomputer);
     UpdateTree();
 }
Esempio n. 3
0
 public static void AddComputer(Computer _Computer)
 {
     if (!programmabledevices.Contains(_Computer))
         programmabledevices.Add(_Computer);
 }