AsterixDisplayAnalyser.FrmAstxRecFrwdForm.listBoxIPAddress_SelectedIndexChanged C# (CSharp) Метод

listBoxIPAddress_SelectedIndexChanged() приватный Метод

private listBoxIPAddress_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        private void listBoxIPAddress_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.checkedListBoxRecordingName.Items.Count > this.listBoxIPAddress.SelectedIndex)
                this.checkedListBoxRecordingName.SelectedIndex = this.listBoxIPAddress.SelectedIndex;

            if (this.listBoxPort.Items.Count > this.listBoxIPAddress.SelectedIndex)
                this.listBoxPort.SelectedIndex = this.listBoxIPAddress.SelectedIndex;

            if (this.listBoxLocalAddr.Items.Count > this.listBoxIPAddress.SelectedIndex)
                this.listBoxLocalAddr.SelectedIndex = this.listBoxIPAddress.SelectedIndex;
        }