public llDialogForm(SecondLifeHost host, SecondLife.String strObjectName, SecondLife.key id, SecondLife.String strOwner, SecondLife.String strMessage, SecondLife.list buttons, SecondLife.integer intChannel) { InitializeComponent(); this.host = host; this.Channel = intChannel; this.OwnerName = strOwner; this.ObjectName = strObjectName; this.id = id; for (int intI = 1; intI <= 12; intI++) { Button button = this.Controls["Button" + intI] as Button; button.Visible = false; } this.label1.Text = strOwner + "'s '" + strObjectName + "'"; this.label2.Text = strMessage.ToString().Replace("&", "&&"); for (int intI = 1; intI <= buttons.Count; intI++) { Button button = this.Controls["Button" + intI] as Button; if (button == null) { continue; } button.Text = buttons[intI - 1].ToString().Replace("&", "&&"); button.Visible = true; button.Click += new EventHandler(button_Click); } }
public llTextBoxForm(SecondLifeHost host, SecondLife.String strObjectName, SecondLife.key id, SecondLife.String strOwner, SecondLife.String strMessage, SecondLife.integer intChannel) { InitializeComponent(); this.host = host; this.Channel = intChannel; this.OwnerName = strOwner; this.ObjectName = strObjectName; this.id = id; this.label1.Text = strMessage.ToString().Replace("&", "&&"); }