public SearchConsole(METAboltInstance 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(); }
public SearchConsole(METAboltInstance instance) { InitializeComponent(); this.instance = instance; netcom = this.instance.Netcom; client = this.instance.Client; AddClientEvents(); tabConsole = this.instance.TabConsole; console = new FindPeopleConsole(instance, UUID.Random()); console.Dock = DockStyle.Fill; console.SelectedIndexChanged += new EventHandler(console_SelectedIndexChanged); pnlFindPeople.Controls.Add(console); eventsconsole = new FindEvents(instance, UUID.Random()); eventsconsole.Dock = DockStyle.Fill; eventsconsole.SelectedIndexChanged += new EventHandler(eventsconsole_SelectedIndexChanged); pnlFindEvents.Controls.Add(eventsconsole); placesconsole = new FindPlaces(instance, UUID.Random()); placesconsole.Dock = DockStyle.Fill; placesconsole.SelectedIndexChanged += new EventHandler(placesconsole_SelectedIndexChanged); pnlFindPlaces.Controls.Add(placesconsole); groupsconsole = new FindGroups(instance, UUID.Random()); groupsconsole.Dock = DockStyle.Fill; groupsconsole.SelectedIndexChanged += new EventHandler(groupsconsole_SelectedIndexChanged); pnlFindGroups.Controls.Add(groupsconsole); }
public SearchConsole(METAboltInstance instance) { InitializeComponent(); this.instance = instance; //netcom = this.instance.Netcom; client = this.instance.Client; AddClientEvents(); tabConsole = this.instance.TabConsole; console = new FindPeopleConsole(instance, UUID.Random()); console.Dock = DockStyle.Fill; console.SelectedIndexChanged += new EventHandler(console_SelectedIndexChanged); pnlFindPeople.Controls.Add(console); eventsconsole = new FindEvents(instance, UUID.Random()); eventsconsole.Dock = DockStyle.Fill; eventsconsole.SelectedIndexChanged += new EventHandler(eventsconsole_SelectedIndexChanged); pnlFindEvents.Controls.Add(eventsconsole); placesconsole = new FindPlaces(instance, UUID.Random()); placesconsole.Dock = DockStyle.Fill; placesconsole.SelectedIndexChanged += new EventHandler(placesconsole_SelectedIndexChanged); pnlFindPlaces.Controls.Add(placesconsole); groupsconsole = new FindGroups(instance, UUID.Random()); groupsconsole.Dock = DockStyle.Fill; groupsconsole.SelectedIndexChanged += new EventHandler(groupsconsole_SelectedIndexChanged); pnlFindGroups.Controls.Add(groupsconsole); landconsole = new FindLand(instance, UUID.Random()); landconsole.Dock = DockStyle.Fill; landconsole.SelectedIndexChanged += new EventHandler(landconsole_SelectedIndexChanged); pnlFindLand.Controls.Add(landconsole); webBrowser = new WebBrowser(); webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted); webBrowser.Navigating += new WebBrowserNavigatingEventHandler(webBrowser_Navigating); webBrowser.Url = new Uri("http://www.metabolt.net/metasearch.php"); webBrowser.AllowNavigation = true; //webBrowser.AllowWebBrowserDrop = false; webBrowser.Dock = DockStyle.Fill; webBrowser.IsWebBrowserContextMenuEnabled = false; webBrowser.ScriptErrorsSuppressed = true; webBrowser.ScrollBarsEnabled = true; webBrowser.NewWindow += new CancelEventHandler(webBrowser_NewWindow); panel4.Controls.Add(webBrowser); Disposed += new EventHandler(SearchConsole_Disposed); PopulateCbos(); }