Example #1
0
        private void Add_Sponsor_Click(object sender, EventArgs e)
        {
            Add_Edit_Sponsor AddSponsor = new Add_Edit_Sponsor(1, CurrentUser);

            AddSponsor.ShowDialog();
            this.Refresh();
        }
Example #2
0
 private void Edit_Sponsor_Click(object sender, EventArgs e)
 {
     if (this.Sponsors_List_View.SelectedRows.Count == 1)
     {
         Add_Edit_Sponsor EditSponsor = new Add_Edit_Sponsor(2, CurrentUser);
         EditSponsor.SetDataBeforeEdit(this.Sponsors_List_View, this.Sponsors_List_View.CurrentRow.Index);
         EditSponsor.ShowDialog();
         this.Refresh();
     }
     else
     {
         MessageBox.Show("Select ONE Record To Edit");
     }
 }