Exemple #1
0
 private void ts_EditVendor_Click(object sender, EventArgs e)
 {
     if (!formExist("OptionsVendors"))
     {
         frm_OptionVendors           = new OptionsVendors();
         frm_OptionVendors.MdiParent = this;
         frm_OptionVendors.Show();
     }
 }
        private void btn_EditProvider_Click(object sender, EventArgs e)
        {
            try
            {
                id_Vendor = Convert.ToInt32(grid_SearchVendors.SelectedRows[0].Cells[0].Value.ToString());

                res = tap.GetDataById(id_Vendor);

                frm_EditVendor.txt_NIT.Text          = res[0].Nit.ToString();
                frm_EditVendor.txt_Name.Text         = res[0].Nombre.ToString();
                frm_EditVendor.txt_Adress.Text       = res[0].Dir_Numero.ToString();
                frm_EditVendor.txt_Neighborhood.Text = res[0].Dir_Barrio.ToString();

                this.Close();
                frm_EditVendor.Show();
            }
            catch (Exception error)
            {
                MessageBox.Show("Ha Ocurrido el Siguiente Error: " + error, "Error",
                                MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemple #3
0
 private void btn_Vendors_Click(object sender, EventArgs e)
 {
     frm_OptionVendors           = new OptionsVendors();
     frm_OptionVendors.MdiParent = this.MdiParent;
     frm_OptionVendors.Show();
 }