private void btnContract_Click(object sender, EventArgs e) { if (BindClient.Client_id > 0) { FrmContractList fols = new FrmContractList(BindClient.Client_id); fols.MdiParent = this.MdiParent; fols.Show(); } }
private void tsmiContract_Click(object sender, EventArgs e) { int clientid = ((this.dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row as humanresourcesDataSet.clientRow).Client_id; if (clientid > 0) { FrmContractList fols = new FrmContractList(clientid); fols.MdiParent = this.MdiParent; fols.Show(); } }