Example #1
0
 public void AddServer(PBUCONServer server)
 {
     server.Active = true;
     this.client.AddServer(server);
     ServerAddedEventArgs e = new ServerAddedEventArgs(server);
     EventArgExtensions.Raise <ServerAddedEventArgs>(e, this, ref ServerAdded);
 }
Example #2
0
        private void ServerAdded(Object sender, ServerAddedEventArgs e)
        {
            // Create a new tab
            ServerTab serverTab = new ServerTab(this.manager, e.Server);

            // Add the tab to the tablist
            this.tabs.Add(serverTab);
            this.serverTabs.Controls.Add(serverTab.Tab);
        }