public static EthernetSelectResult ShowBox(Window parent, bool isSelect) { DeviceSelect_Ethernet win = new DeviceSelect_Ethernet(parent, isSelect); win.ShowDialog(); return(win.SelectedEthernet); }
private void DoDiscovery() { this.Title = DI.Wrapper.GetText(MsgCode.Ethernet); this.selectedEthernet = DeviceSelect_Ethernet.ShowBox(this, true); if (this.selectedEthernet != null) { this.Title = this.selectedEthernet.DataModel.Display; } }
private void OnUiSettings(object sender, EventArgs e) { DeviceSelect_Ethernet.ShowBox(this, false); }