示例#1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            FrmDetailSellerAddress detailSellerAddress = new FrmDetailSellerAddress((int)table.Rows[0]["ID"]);

            detailSellerAddress.Show();
            this.Close();
        }
示例#2
0
        private void button3_Click(object sender, EventArgs e)
        {
            FrmDetailSellerAddress sellerAddress = new FrmDetailSellerAddress((int)table.Rows[0]["ID"]);

            if (dgvSellerAddress.SelectedRows.Count > 0)
            {
                var id = (int)dgvSellerAddress.SelectedRows[0].Cells["SellerID"].Value;
                sellerAddress.SetSellerAddress(id);
                sellerAddress.Show();
            }
        }