コード例 #1
0
        public void TestServer()
        {
            RestServer rs = new RestServer(2, "Ben");

            bool isFalse = true;

            if (rs.Equals(null))
            {
                isFalse = false;
            }

            Assert.IsTrue(isFalse);
        }
コード例 #2
0
        private void BtnServerAdd_Click(object sender, EventArgs e)
        {
            string serverName = "";
            int    serverID   = 0;

            using (AddServer addServer = new AddServer())
            {
                if (addServer.ShowDialog() == DialogResult.OK)
                {
                    serverName = addServer.ServerName;
                    serverID   = addServer.ServerID;
                }
            }
            newServ = new RestServer(serverID, serverName);
            lstServers.Items.Add(newServ);
        }
コード例 #3
0
 public void AssignServer(RestServer serv1)
 {
     Serv = serv1;
 }