private void FnAddAsset() { if (dtg_Users.SelectedRows.Count == 0) { MessageBox.Show("Please Select A User To Add Asset For!"); } else { string u = dtg_Users.SelectedRows[0].Cells["UserID"].Value.ToString().Trim(); AddAsset add = new AddAsset(strConnection, u); add.ShowDialog(); SearchIt(); } }
private void FnAddAsset() { if (dtg_Users.SelectedRows.Count == 0) MessageBox.Show("Please Select A User To Add Asset For!"); else { string u = dtg_Users.SelectedRows[0].Cells["UserID"].Value.ToString().Trim(); AddAsset add = new AddAsset(strConnection, u); add.ShowDialog(); SearchIt(); } }