public void Setup() { SetupDialog dialog = new SetupDialog(this.m_portAddress, this.m_pulseWidth); if (dialog.ShowDialog() == DialogResult.OK) { this.m_pulseWidth = dialog.PulseWidth; this.m_portAddress = (ushort)dialog.PortAddress; this.m_setupData.SetInteger(this.m_setupNode, "Address", this.m_portAddress); this.m_setupData.SetInteger(this.m_setupNode, "PulseWidth", this.m_pulseWidth); } }
public void Setup() { SetupDialog dialog = new SetupDialog(this.m_portAddress, this.m_pulseWidth); if (dialog.ShowDialog() == DialogResult.OK) { this.m_pulseWidth = dialog.PulseWidth; this.m_portAddress = (ushort) dialog.PortAddress; this.m_setupData.SetInteger(this.m_setupNode, "Address", this.m_portAddress); this.m_setupData.SetInteger(this.m_setupNode, "PulseWidth", this.m_pulseWidth); } }