private void dgvFunctionalFields_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { //var id = dgvFunctionalFields.CurrentRow.Cells[Name = "Id"].Value.ToString(); //UserControl ucDetails = new ucFunctionalFieldsDetails(int.Parse(id)); var item = dgvFunctionalFields.CurrentRow.DataBoundItem; UserControl ucDetails = new ucFunctionalFieldsDetails(item as FunctionalField); _navigationService.ShowDetailsUC(ucDetails); }
private void btnNewFunctField_Click(object sender, EventArgs e) { UserControl ucInsert = new ucFunctionalFieldsDetails(); _navigationService.ShowDetailsUC(ucInsert); }