PeerCastStation.GUI.ListenerEditDialog.addButton_Click C# (CSharp) Метод

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

private addButton_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
    private void addButton_Click(object sender, EventArgs e)
    {
      Port = (int)portNumber.Value;
      if (addressText.SelectedIndex==0) {
        Address = System.Net.IPAddress.Any;
      }
      else if (addressText.SelectedIndex==1) {
        Address = System.Net.IPAddress.IPv6Any;
      }
      else {
        Address = System.Net.IPAddress.Parse(addressText.Text);
      }
      LocalAccepts  = OutputStreamType.Metadata;
      GlobalAccepts = OutputStreamType.Metadata;
      if (portLocalDirect.Checked)     LocalAccepts |= OutputStreamType.Play;
      if (portLocalRelay.Checked)      LocalAccepts |= OutputStreamType.Relay;
      if (portLocalInterface.Checked)  LocalAccepts |= OutputStreamType.Interface;
      if (portGlobalDirect.Checked)    GlobalAccepts |= OutputStreamType.Play;
      if (portGlobalRelay.Checked)     GlobalAccepts |= OutputStreamType.Relay;
      if (portGlobalInterface.Checked) GlobalAccepts |= OutputStreamType.Interface;
      DialogResult = System.Windows.Forms.DialogResult.OK;
    }
  }