Example #1
0
        void NhapDanhSachIP()
        {
            FrmSetIP frmSetIP = new FrmSetIP();

            frmSetIP.ShowDialog();
            // mangMayTinh = serverThread.AddMayTinh("192.168.255.1", "192.168.255.60", "255.255.255.0");

            // this.MainGroupBox.Controls.Add(mangMayTinh);

            mangMayTinh = serverThread.AddMayTinh(StaticInfo.FirstIP, StaticInfo.LastIP, StaticInfo.SubnetMask);
            this.MainGroupBox.Controls.Add(mangMayTinh);
        }
Example #2
0
        private void cmdNhapVungIP_Click(object sender, EventArgs e)
        {
            FrmSetIP     frmSetIP = new FrmSetIP();
            DialogResult result   = frmSetIP.ShowDialog();

            if (result != DialogResult.OK)
            {
                return;
            }
            string FirstIP    = frmSetIP.FirstIP;
            string LastIP     = frmSetIP.LastIP;
            string SubnetMask = frmSetIP.SubnetMask;

            serverThread.SetClienttoList(FirstIP, LastIP, SubnetMask);
        }