| | |
| | | { |
| | | return; |
| | | } |
| | | IBoxHelper.ConnectionAddress = this.TxtConnectionAddress.Text; |
| | | IBoxHelper.ConnectionType = (eConnectionType)this.imageComboxConnectType.EditValue; |
| | | if (IBoxHelper.Ping()) |
| | | { |
| | | VisibleChanged.Invoke(true); |
| | | IBoxHelper.ConnectionAddress = null; |
| | | IBoxHelper.ConnectionType = eConnectionType.Bluetooth; |
| | | } |
| | | this.Close(); |
| | | } |
| | | } |
| | | |
| | | private async void imageComboBoxEdit1_SelectedIndexChanged(object sender, EventArgs e) |
| | | { |
| | |
| | | { |
| | | var model = await new PBS.BLL.Facility().GetByID((long)select); |
| | | this.imageComboxConnectType.EditValue = model.ConnectionType; |
| | | this.TxtConnectionAddress.Text = model.IPAddress; |
| | | this.TxtConnectionAddress.Text = model.ConnectionAddress; |
| | | } |
| | | } |
| | | } |