예제 #1
0
        private void CheckReg()
        {
            var        machineCode = GetMachineCode.GetMachineCodeString().MD5Encrypt32();
            HttpClient httpClient  = new HttpClient();
            var        result      = httpClient.Get($@"{baseUrl}/api/Login/CheckMachineRegStatus?machineCode={machineCode}");

            var resultModel = JsonConvert.DeserializeObject <ReturnBase>(result.RawText);

            if (resultModel.IsSuccess)
            {
                this.Hide();
                Application.Run(new Form1(this));
            }
        }
예제 #2
0
 private void Check_Load(object sender, EventArgs e)
 {
     textBox2.Text = GetMachineCode.GetMachineCodeString().MD5Encrypt32();
 }