Ejemplo n.º 1
0
        private void bt_database_Click(object sender, EventArgs e)
        {
            Form_DTBView a = new Form_DTBView();

            //a.themname = THEME;
            a.BringToFront();
            if (a.ShowDialog(this) == DialogResult.OK)
            {
                txtdatabase.Text  = a.Code_DTB;
                txt_database.Text = a.Description_DTB;
            }
        }
Ejemplo n.º 2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            string sErr = "";

            _processStatus = "V";
            Form_DTBView frm = new Form_DTBView();

            //frm.Connect = _dtb;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                if (frm.Code_DTB != "")
                {
                    BUS.DBAControl ctr = new BUS.DBAControl();
                    DTO.DBAInfo    inf = ctr.Get(frm.Code_DTB, ref sErr);
                    SetDataToForm(inf);
                }
            }
            if (sErr == "")
            {
                EnableForm(false);
                _processStatus = "V";
            }
        }