private void EditCharacter() { if (dgdCharactersList.SelectedRows.Count == 1) { //Gets Id int selectedCharacterId = Convert.ToInt32(dgdCharactersList.CurrentRow.Cells[0].Value); frmCharacter selectedCharacter = new frmCharacter(this, selectedCharacterId); selectedCharacter.Show(); } }
private void NewCharacter() { frmCharacter newCharacter = new frmCharacter(this); newCharacter.Show(); }