Example #1
0
        private void mtxt_cat_Click(object sender, EventArgs e)
        {
            connection = new MySqlConnection(ConnectionString);
            CategoryName catname = new CategoryName();

            if (catname.ShowDialog(this) == DialogResult.OK)
            {
                mtxt_cat.Text = catname.cat_grid.Rows[catname.row].Cells[1].Value.ToString();
                mtxtx_cid.Tag = catname.cat_grid.Rows[catname.row].Cells[0].Value.ToString();
            }
        }
Example #2
0
        private void mtxt_cat_Click(object sender, EventArgs e)
        {
            connection = new MySqlConnection(ConnectionString);
             CategoryName catname = new CategoryName();

            if(catname.ShowDialog(this) == DialogResult.OK)
            {
                mtxt_cat.Text = catname.cat_grid.Rows[catname.row].Cells[1].Value.ToString();
                mtxtx_cid.Tag = catname.cat_grid.Rows[catname.row].Cells[0].Value.ToString();
            }
        }
Example #3
0
        private void mtxt_cat_Click(object sender, EventArgs e)
        {
            mtxt_brand.Enabled = true;
            mtxt_brand.Clear();
            //MessageBox.Show("" + mtxt_cid.Tag);
            connection = new MySqlConnection(ConnectionString);
            CategoryName catname = new CategoryName();
            BrandForm    brand   = new BrandForm();

            if (catname.ShowDialog(this) == DialogResult.OK)
            {
                mtxt_cat.Text = catname.cat_grid.Rows[catname.row].Cells[1].Value.ToString();
                //mtxt_cat.Tag = catname.cat_grid.Rows[catname.row].Cells[0].Value.ToString();
                mtxt_cid.Tag = catname.cat_grid.Rows[catname.row].Cells[0].Value.ToString();
            }
            catname.Dispose();
        }
Example #4
0
        private void mtxt_cat_Click(object sender, EventArgs e)
        {
            mtxt_brand.Enabled = true;
            mtxt_brand.Clear();
            //MessageBox.Show("" + mtxt_cid.Tag);
            connection = new MySqlConnection(ConnectionString);
            CategoryName catname = new CategoryName();
            BrandForm brand = new BrandForm();

            if (catname.ShowDialog(this) == DialogResult.OK)
            {

                mtxt_cat.Text = catname.cat_grid.Rows[catname.row].Cells[1].Value.ToString();
                //mtxt_cat.Tag = catname.cat_grid.Rows[catname.row].Cells[0].Value.ToString();
                mtxt_cid.Tag = catname.cat_grid.Rows[catname.row].Cells[0].Value.ToString();
            }
            catname.Dispose();
        }