private void Add_Champioship_Click(object sender, EventArgs e) { Add_Edit_Champ_Type AddChampTyp = new Add_Edit_Champ_Type(1, CurrentUser); AddChampTyp.ShowDialog(); this.Refresh(); }
private void Edit_Champioship_Click(object sender, EventArgs e) { if (this.Chanmpionship_List_View.SelectedRows.Count == 1) { Add_Edit_Champ_Type EditChampType = new Add_Edit_Champ_Type(2, CurrentUser); EditChampType.SetDataBeforeEdit(this.Chanmpionship_List_View, this.Chanmpionship_List_View.CurrentRow.Index); EditChampType.ShowDialog(); this.Refresh(); } else { MessageBox.Show("Select ONE Record To Edit"); } }