private void btnCreate_Click(object sender, EventArgs e) { CharacterScreen nextForm = new CharacterScreen(profile); this.Hide(); nextForm.ShowDialog(); this.Show(); RefreshList(); }
private void btnEdit_Click(object sender, EventArgs e) { Character character = (Character)listCharacters.SelectedItem; CharacterScreen nextForm = new CharacterScreen(profile, character); this.Hide(); nextForm.ShowDialog(); this.Show(); RefreshList(); }