private void btnDouble_Click(object sender, EventArgs e) { double a = Convert.ToDouble(txtOp1.Text); double b = Convert.ToDouble(txtOp2.Text); Maxer M = new Maxer(); lblShow.Text = "最大值:" + M.Max(a, b); }
private void btnTwoInt_Click(object sender, EventArgs e) { int a = Convert.ToInt32(txtOp1.Text); int b = Convert.ToInt32(txtOp2.Text); Maxer M = new Maxer(); lblShow.Text = "最大值:" + M.Max(a, b); }