private void MenuPingArchor_Click(object sender, RoutedEventArgs e) { var archor = DataGrid3.SelectedItem as UDPArchor; if (archor == null) { return; } var pingWnd = new PingWindow(archor.GetIp()); pingWnd.Show(); }
public override IEnumerable <KeyValuePair <string, string> > GetLoadedOptionsPairs() { yield return(new KeyValuePair <string, string>("IP", Ip)); yield return(new KeyValuePair <string, string>("TCP PORT", TcpPort.ToString())); yield return(new KeyValuePair <string, string>("HTTP PORT", HttpPort.ToString())); yield return(new KeyValuePair <string, string>("TIMEOUT", Timeout.ToString())); yield return(new KeyValuePair <string, string>("READ WINDOW", ReadWindow.ToString())); yield return(new KeyValuePair <string, string>("WRITE WINDOW", WriteWindow.ToString())); yield return(new KeyValuePair <string, string>("PING WINDOW", PingWindow.ToString())); }
private void MenuPing_Click(object sender, RoutedEventArgs e) { var pingWnd = new PingWindow(); pingWnd.Show(); }