private void tsmAddPlatform_Click(object sender, EventArgs e) { AddPlatform agf = new AddPlatform(); agf.client = client; agf.ShowDialog(); LoadComboBoxes(); }
private void btnEdit_Click(object sender, EventArgs e) { if (!Functions.chkIfSelected(dgvPlatform)) { return; } AddPlatform agf = new AddPlatform(); agf.client = client; agf.P = dgvPlatform.CurrentRow.DataBoundItem as Platform; agf.ShowDialog(); LoadPlatforms(); }