Exemplo n.º 1
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            if (gridView1.RowCount == 0)
            {
                return;
            }
            int currentrow = gridView1.FocusedRowHandle;
            int store_id   = int.Parse(gridView1.GetRowCellValue(currentrow, "store_id").ToString());

            frm_stores frm = new frm_stores();

            frm.txt_name.Text = gridView1.GetRowCellValue(currentrow, "store_name").ToString();
            frm.store_id      = store_id;
            frm.btn_save.Tag  = "1";
            frm.ShowDialog();
        }
Exemplo n.º 2
0
        private void simpleButton3_Click(object sender, EventArgs e)
        {
            frm_stores frm = new frm_stores();

            frm.ShowDialog();
        }