private void Add_Match_Click(object sender, EventArgs e) { Add_Edit_Match AddMatch = new Add_Edit_Match(1, CurrentUser); AddMatch.ShowDialog(); this.Refresh(); }
private void Edit_Match_Click(object sender, EventArgs e) { if (this.Match_List_View.SelectedRows.Count == 1) { Add_Edit_Match EditMatch = new Add_Edit_Match(2, CurrentUser); EditMatch.SetDataBeforEdit(this.Match_List_View, this.Match_List_View.CurrentRow.Index); EditMatch.ShowDialog(); this.Refresh(); } else { MessageBox.Show("Select ONE Record To Edit"); } }