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)); } }
private void Check_Load(object sender, EventArgs e) { textBox2.Text = GetMachineCode.GetMachineCodeString().MD5Encrypt32(); }