private void CopyIPAddress_Click(object sender, RoutedEventArgs e) { CoreInstance board = GetSelectedBoard(); if (board != null) { AddToClipboard(board.IpAddress); } }
public override bool Equals(object obj) { CoreInstance other = obj as CoreInstance; if (this == null || other == null) { return(false); } else { return(MacAddress.Equals(other.MacAddress)); } }
private void OpenNetworkShare_Click(object sender, RoutedEventArgs e) { CoreInstance board = GetSelectedBoard(); if (board != null) { try { System.Diagnostics.Process.Start("\\\\" + board.IpAddress + "\\" + "c$"); } catch (Exception ex) { ShowAppLaunchFailure(ex); } } }
private void WebBrowserHere_Click(object sender, RoutedEventArgs e) { CoreInstance board = GetSelectedBoard(); if (board != null) { try { System.Diagnostics.Process.Start("http://" + board.IpAddress); } catch (Exception ex) { ShowAppLaunchFailure(ex); } } }
private void TelnetHere_Click(object sender, RoutedEventArgs e) { CoreInstance board = GetSelectedBoard(); if (board != null) { string system32 = Environment.GetFolderPath(Environment.SpecialFolder.System); try { System.Diagnostics.Process.Start("telnet:" + board.IpAddress); } catch (Exception ex) { ShowAppLaunchFailure(ex); } } }