Exemplo n.º 1
0
        public SearchConsole(RadegastInstance instance)
        {
            InitializeComponent();
            Disposed += new EventHandler(SearchConsole_Disposed);

            this.instance = instance;

            comboEventType.SelectedIndex  = 0;
            lvwEvents.Parent.SizeChanged += lvwEvents_SizeChanged;
            lvwEvents.ListViewItemSorter  = new EventSorter();

            // Callbacks
            client.Directory.DirPeopleReply += new EventHandler <DirPeopleReplyEventArgs>(Directory_DirPeopleReply);
            client.Directory.DirPlacesReply += new EventHandler <DirPlacesReplyEventArgs>(Directory_DirPlacesReply);
            client.Directory.DirGroupsReply += new EventHandler <DirGroupsReplyEventArgs>(Directory_DirGroupsReply);
            client.Directory.DirEventsReply += Directory_DirEventsReply;
            client.Directory.EventInfoReply += Directory_EventInfoReply;
            instance.Names.NameUpdated      += Names_NameUpdated;
            console = new FindPeopleConsole(instance, UUID.Random())
            {
                Dock = DockStyle.Fill
            };
            console.SelectedIndexChanged += new EventHandler(console_SelectedIndexChanged);
            pnlFindPeople.Controls.Add(console);
            lvwPlaces.ListViewItemSorter = new PlaceSorter();
            lvwGroups.ListViewItemSorter = new GroupSorter();

            GUI.GuiHelpers.ApplyGuiFixes(this);
        }
Exemplo n.º 2
0
        public SearchConsole(RadegastInstance instance)
        {
            InitializeComponent();
            Disposed += new EventHandler(SearchConsole_Disposed);

            this.instance = instance;

            // Callbacks
            client.Directory.DirPeopleReply += new EventHandler<DirPeopleReplyEventArgs>(Directory_DirPeopleReply);
            client.Directory.DirPlacesReply += new EventHandler<DirPlacesReplyEventArgs>(Directory_DirPlacesReply);
            client.Directory.DirGroupsReply += new EventHandler<DirGroupsReplyEventArgs>(Directory_DirGroupsReply);
            console = new FindPeopleConsole(instance, UUID.Random());
            console.Dock = DockStyle.Fill;
            console.SelectedIndexChanged += new EventHandler(console_SelectedIndexChanged);
            pnlFindPeople.Controls.Add(console);
            lvwPlaces.ListViewItemSorter = new PlaceSorter();
            lvwGroups.ListViewItemSorter = new GroupSorter();
        }
Exemplo n.º 3
0
        public SearchConsole(RadegastInstance instance)
        {
            InitializeComponent();
            Disposed += new EventHandler(SearchConsole_Disposed);

            this.instance = instance;

            comboEventType.SelectedIndex = 0;
            lvwEvents.Parent.SizeChanged += lvwEvents_SizeChanged;
            lvwEvents.ListViewItemSorter = new EventSorter();

            // Callbacks
            client.Directory.DirPeopleReply += new EventHandler<DirPeopleReplyEventArgs>(Directory_DirPeopleReply);
            client.Directory.DirPlacesReply += new EventHandler<DirPlacesReplyEventArgs>(Directory_DirPlacesReply);
            client.Directory.DirGroupsReply += new EventHandler<DirGroupsReplyEventArgs>(Directory_DirGroupsReply);
            client.Directory.DirEventsReply += Directory_DirEventsReply;
            client.Directory.EventInfoReply += Directory_EventInfoReply;
            instance.Names.NameUpdated += Names_NameUpdated;
            console = new FindPeopleConsole(instance, UUID.Random());
            console.Dock = DockStyle.Fill;
            console.SelectedIndexChanged += new EventHandler(console_SelectedIndexChanged);
            pnlFindPeople.Controls.Add(console);
            lvwPlaces.ListViewItemSorter = new PlaceSorter();
            lvwGroups.ListViewItemSorter = new GroupSorter();

            Radegast.GUI.GuiHelpers.ApplyGuiFixes(this);
        }