/// <summary> /// Deregister Check /// </summary> static void DeregisterCheck() { var agentGovern = new AgentGovern(); var result = agentGovern.DeregisterCheck("test001").GetAwaiter().GetResult(); Console.WriteLine($"result={result.result}"); Console.WriteLine($"back content={result.backJson}"); }
private void btnCheckDelete_Click(object sender, EventArgs e) { try { var agentGovern = new AgentGovern(); gridCheck.DataSource = agentGovern.DeregisterCheck(gridCheck.SelectedRows[0].Cells["id"].Value.ToString()); } catch (Exception exc) { MessageBox.Show(exc.Message); } }