private void ViewDoubleClickEvent(object sender, MouseEventArgs e) { var gridView = (DataGridView)sender; if (gridView.Name == "monsterPool_gridView") { Utillities.AddToViewEvent(monsterPool_gridView, init_gridView, null, true, true, true); } else if (gridView.Name == "monster_gridView") { Utillities.AddToViewEvent(monster_gridView, monsterPool_gridView, Utillities.monsterPoolTable); } }