private void btnStatusPositionBlinds_Click(object sender, EventArgs e) { try { var frm = new FrmGroupAddressPick(); frm.Text = node.Title + " - " + this.ckbStatusPositionBlinds.Text; frm.MultiSelect = false; frm.PickType = FrmGroupAddressPick.AddressType.Read; frm.SelectedAddress = this.gaStatusPositionBlinds; var result = frm.ShowDialog(); if (result == DialogResult.OK) { this.gaStatusPositionBlinds = frm.SelectedAddress; this.txbxStatusPositionBlinds.Text = KNXSelectedAddress.GetGroupAddressName(this.gaStatusPositionBlinds); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }
private void btnPositionShutter_Click(object sender, EventArgs e) { try { var frm = new FrmGroupAddressPick(); frm.Text = node.Title + " - " + this.ckbPositionShutter.Text; frm.MultiSelect = true; frm.PickType = FrmGroupAddressPick.AddressType.Write; frm.SelectedAddress = this.gaPositionShutter; var result = frm.ShowDialog(); if (result == DialogResult.OK) { this.gaPositionShutter = frm.SelectedAddress; this.txbxPositionShutter.Text = KNXSelectedAddress.GetGroupAddressName(this.gaPositionShutter); } } catch (Exception ex) { Console.WriteLine(ex.Message); } }