/// <summary> /// Called when the add button is clicked /// </summary> /// <param name="sender">autogenerated</param> /// <param name="e">autogenerated</param> private void AddButtonClick(object sender, RoutedEventArgs e) { if (ManagerstationGrid.SelectedCells.Count != 0) { _ui.ExchangeKeys(new IPEndPoint(IPAddress.Parse(((StationStatus)ManagerstationGrid.SelectedItem).IpAdress), 62000)); } }
/// <summary> /// Called when the add button is clicked /// </summary> /// <param name="sender"> /// autogenerated /// </param> /// <param name="e"> /// autogenerated /// </param> private void AddButtonClick(object sender, RoutedEventArgs e) { if (ManagerstationGrid.SelectedCells.Count != 0) { _ui.ExchangeKeys(((StationStatus)ManagerstationGrid.SelectedItem).Address); } UpdateControls(); }
/// <summary> /// Called when the Add button is clicked /// </summary> /// <param name="sender"> /// autogenerated /// </param> /// <param name="e"> /// autogenerated /// </param> private void AddButtonClick(object sender, RoutedEventArgs e) { if (stationGrid.SelectedCells.Count != 0) { IPEndPoint ipep = ((StationStatus)stationGrid.SelectedItem).Address; if (!_ui.GetPeerlist().Contains(ipep)) { _ui.ExchangeKeys(ipep); } } UpdateControls(); }