예제 #1
0
        private void tasa_lbl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            DolaresForm form = new DolaresForm();

            form.ShowDialog();
            DataTable dt1 = new DataTable();

            dt1           = P.ObtenerTasaDolarYFecha();
            tasa_lbl.Text = "";
            tasa_lbl.Text = "1.00 $USD = " + (Convert.ToDouble(dt1.Rows[0]["TASA"])).ToString("N2") + "$RD";
        }
예제 #2
0
        private void dolares_btn_Click(object sender, EventArgs e)
        {
            Form fc = Application.OpenForms["DolaresForm"];

            if (fc != null)
            {
                fc.BringToFront();
            }
            else
            {
                DolaresForm frm = new DolaresForm();
                frm.Show();
            }
        }
예제 #3
0
        private void FormVentanaPrincipal_Shown(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();

            dt = P.ObtenerTasaDolarYFecha();
            string lastDate = dt.Rows[0]["FACTUALIZADO"].ToString();
            string now      = DateTime.Now.Date.ToString("dd/MM/yyyy");
            bool   permiso  = GF.ValidarPermisoTransaccion("ACTUALIZAR TASA DIARIO");

            if (permiso && ((DateTime.ParseExact(lastDate, "dd/MM/yyyy", CultureInfo.InvariantCulture) < DateTime.ParseExact(now, "dd/MM/yyyy", CultureInfo.InvariantCulture))))
            {
                DolaresForm form = new DolaresForm();
                form.ShowDialog();
            }
        }
예제 #4
0
        private void tasaDolarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DolaresForm form = new DolaresForm();

            form.ShowDialog();
        }