Ejemplo n.º 1
0
 private void newServerRegistrationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (treeView1.Nodes.Find(this.SQLServer, true).Length == 0)
     {
         TreeNode newServerNode = new TreeNode(this.SQLServer, 2, 2);
         newServerNode.ContextMenuStrip = contextMenuStrip1;
         RegServer srv = new RegServer()
         {
             Name = this.SQLServer
         };
         newServerNode.Tag = srv;
         treeView1.SelectedNode.Nodes.Add(newServerNode);
         treeView1.SelectedNode.Expand();
         treeView1.Invalidate();
     }
     else
     {
         MessageBox.Show("This SQL Server is already registered", "Already have it", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     UpdateRegisteredServersList();
 }
Ejemplo n.º 2
0
 static SoundManager()
 {
     GameServer = new GameServer();
     RegServer  = new RegServer();
 }