private void OnUiInfo(object sender, EventArgs e) { if (this.selectedEthernet != null) { EthernetInfo.ShowBox(this, this.selectedEthernet.DataModel); } }
public static void ShowBox(Window parent, EthernetParams info) { EthernetInfo win = new EthernetInfo(parent, info); win.ShowDialog(); }