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