private void newMobTemplate_Click(object sender, EventArgs e) { string LootTemplateName = (string)this.lootTemplateDataGrid.SelectedRows[0].Cells["templateNameDataGridViewTextBoxColumn"].Value; newMobAssignment newMobAssignmentForm = new newMobAssignment(this, LootTemplateName); DialogResult result = newMobAssignmentForm.ShowDialog(); if (result == DialogResult.OK) { getMobsOfLootTemplate(); } }