Example #1
0
        private void btncolocar_Click(object sender, EventArgs e)
        {
            double a;

            a = Convert.ToDouble(txtcotizacion.Text);
            banco x = banco.getInstance();

            x.colocarcotizacion(Convert.ToDouble(txtcotizacion.Text));
        }
Example #2
0
        public static banco getInstance()
        {
            if (instance == null)
            {
                instance = new banco();
            }

            return(instance);
        }
Example #3
0
        private void btnobtener_Click(object sender, EventArgs e)
        {
            banco v = banco.getInstance();

            lblcotizacion.Text = v.obtenercotizacion().ToString();
        }