コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }