private void Btn_PurchaseList_Click(object sender, EventArgs e) { Form_PurchaseList P = new Form_PurchaseList(); P.ShowDialog(); }
/// <summary> /// ایونت دابل کلیک گرید /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void GridListP_DoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex != -1) { int PurchaseListID = Convert.ToInt32(GridListPurchace.Rows[e.RowIndex].Cells["PurchaseListID"].Value); Form_PurchaseList FP = new Form_PurchaseList(PurchaseListID, 1); FP.ShowDialog(); ShowPurchaseLists(); } }