Exemple #1
0
        private void btnExtraction_Click(object sender, EventArgs e)
        {
            FourOperations operations = new FourOperations();
            math_Op        op         = operations.Extraction;

            sonuc         = op(vs[0], vs[1]);
            txtSonuc.Text = "";
            txtSonuc.Text = sonuc.ToString();
        }
Exemple #2
0
        private void btnDivide_Click(object sender, EventArgs e)
        {
            //delegate used
            FourOperations operations = new FourOperations();
            math_Op        op         = operations.Divide;

            sonuc         = op(vs[0], vs[1]);
            txtSonuc.Text = "";
            txtSonuc.Text = sonuc.ToString();
        }