Пример #1
0
 private void SecondLifeHost_OnListenChannelsChanged(object sender, EventArgs e)
 {
     foreach (Control control in this.panel4.Controls)
     {
         GroupboxEvent gbe = control as GroupboxEvent;
         if (gbe == null)
         {
             continue;
         }
         foreach (Control control1 in gbe.Controls)
         {
             GroupBox gb = control1 as GroupBox;
             if (gb == null)
             {
                 continue;
             }
             if (gb.Name != "listen_0")
             {
                 continue;
             }
             ComboBox comboBox = gb.Controls[0] as ComboBox;
             AddListenChannelsToComboxBox(comboBox, SecondLifeHost.GetListenChannels());
         }
     }
 }
Пример #2
0
        private void ShowLifeEvents()
        {
            if (this.panel4.InvokeRequired)
            {
                this.panel4.Invoke(new ShowLifeEventsDelegate(ShowLifeEvents), null);
            }
            else
            {
                int intX = 8;
                int intY = 0;

                this.panel4.Controls.Clear();
                foreach (string strEventName in SecondLifeHost.GetEvents())
                {
                    string        strArgs = SecondLifeHost.GetArgumentsFromMethod(strEventName);
                    GroupboxEvent ge      = new GroupboxEvent(new Point(intX, intY), strEventName, strArgs, new System.EventHandler(this.buttonEvent_Click));
                    this.panel4.Controls.Add(ge);
                    intY += ge.Height;
                }
            }
        }