/// <summary>Raises the GroupTitlesReply event</summary>
 /// <param name="e">A GroupTitlesReplyEventArgs object containing the
 /// data returned from the simulator</param>
 protected virtual void OnGroupTitles(GroupTitlesReplyEventArgs e)
 {
     EventHandler<GroupTitlesReplyEventArgs> handler = m_GroupTitles;
     if (handler != null)
         handler(this, e);
 }
        void Groups_GroupTitlesReply(object sender, GroupTitlesReplyEventArgs e)
        {
            if (groupTitlesRequest != e.RequestID) return;

            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => Groups_GroupTitlesReply(sender, e)));
                return;
            }

            this.titles = e.Titles;

            foreach (GroupTitle title in titles.Values)
            {
                cbxActiveTitle.Items.Add(title);
                if (title.Selected)
                {
                    cbxActiveTitle.SelectedItem = title;
                }
            }

            cbxActiveTitle.SelectedIndexChanged += cbxActiveTitle_SelectedIndexChanged;
        }
Beispiel #3
0
 public virtual void Groups_OnGroupTitles(object sender, GroupTitlesReplyEventArgs e) { OnEvent("On-Group-Titles", paramNamesOnGroupTitles, paramTypesOnGroupTitles, e); }
        void Groups_GroupTitlesReply(object sender, GroupTitlesReplyEventArgs e)
        {
            if (e.GroupID != this.groupkey)
                return;

            group_titles=e.Titles;

            if (titles.Count == 0)
                return;

            Console.Write("Group titles recieved\n");

            Gtk.Application.Invoke(delegate {

            //combobox_active_title.Clear();
            int x=0;
                foreach(KeyValuePair  <UUID,OpenMetaverse.GroupTitle> title in group_titles)
                {
                    Logger.Log("Appending "+title.Value.Title,Helpers.LogLevel.Debug);
                    combobox_active_title.AppendText(title.Value.Title);
                }
                trysetcurrenttitle();
            });
        }
Beispiel #5
0
        private void GroupTitlesHandler(object sender, GroupTitlesReplyEventArgs e)
        {
            Titles = e.Titles;

            UpdateTitles();
        }