private void GridProject_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e) { Form_EnterProject LP = new Form_EnterProject(Convert.ToInt32(GridProject.Rows[e.RowIndex].Cells["ProjectID"].Value)); LP.ShowDialog(); GetData(); ShowData(); }
private void radButton1_Click(object sender, EventArgs e) { if (Combo_SelectProject.SelectedIndex == -1) { MessageBox.Show("لطفا موردی از لیست انتخاب نمایید", "خطا", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } int ID = Convert.ToInt32(Combo_SelectProject.SelectedValue); Form_EnterProject P = new Form_EnterProject(ID); P.ShowDialog(); GetData(); ShowData(); }