Example #1
0
 private void OnSaveClick()
 {
     if (IsThisOrg)
     {
         OrgChangingSettings.Password    = Password;
         OrgChangingSettings.Name        = Name;
         OrgChangingSettings.Telephone   = Phone;
         OrgChangingSettings.Mail        = Mail;
         OrgChangingSettings.Information = Information;
         var rep = new SQLRepository();
         rep.ChangeOrganizerInformation(OrgChangingSettings);
         rep.Save();
     }
     else
     {
         GrpChangingSettings.Password    = Password;
         GrpChangingSettings.Name        = Name;
         GrpChangingSettings.Telephone   = Phone;
         GrpChangingSettings.Mail        = Mail;
         GrpChangingSettings.Information = Information;
         var rep = new SQLRepository();
         rep.ChangeGroupInformation(GrpChangingSettings);
         rep.Save();
     }
     Close();
 }