Beispiel #1
0
        private void AddComputer_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new AddComputerDialog();

            dialog.Owner = this;
            bool?b = dialog.ShowDialog();

            if (b == true)
            {
                Computers.AddComputer(new Computer(IPAddress.Parse(dialog.ComputerIp), dialog.ComputerName));
            }
        }
 private void AddComputer_Click(object sender, RoutedEventArgs e)
 {
     var dialog = new AddComputerDialog();
     dialog.Owner = this;
     bool? b = dialog.ShowDialog();
     if (b == true) {
         Computers.AddComputer(new Computer(IPAddress.Parse(dialog.ComputerIp), dialog.ComputerName));
     }
 }