protected void Button2_Click(object sender, EventArgs e) { double t = double.Parse(TextBox3.Text); int H = int.Parse(TextBox4.Text); int size = 4; double[] spot = new double[] { 100, 100, 100, 100 }; double[] sigma = new double[] { 0.2, 0.2, 0.2, 0.2 }; double r = 0.05; double[] coeff = new double[] { .25, .25, .25, .25 }; double[] rho = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }; double T = 6; int N = 6; int M = 50000; WrapperClass wc = new WrapperClass(); double K = 0.0; wc.getDelta(t, size, spot, K, sigma, r, coeff, rho, T, N, H, M); Label4.Text = Math.Round(wc.getDelta(), 4).ToString(); Label5.Text = Math.Round(wc.getICD(), 4).ToString(); Label6.Text = Math.Round(wc.getDeltaBS(), 4).ToString(); }