Exemple #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            localIP = new IPUtil().GetIpAddress();

            cbbLevel.SelectedIndex = getLevel(localIP);

            var reg_username = regUtil.ReadLastUserName();

            if (!String.IsNullOrEmpty(reg_username))
            {
                tbName.Text = reg_username;
            }
            else
            {
                tbName.Text = Environment.UserName;
            }

            tsslIP.Text = $"本机IP地址:{localIP}";
        }