Пример #1
0
 void btnSyncronise_Click(object sender, EventArgs e)
 {
     TitleWebpart.TitleWebpart webPartToEditt = (TitleWebpart.TitleWebpart) this.WebPartToEdit;
     //if (drpSyncWithStore.SelectedValue.Equals("true"))
     //{
     using (SPSetttingsProvider provider = new SPSetttingsProvider())
     {
         bool error = provider.LoadSPSetting(webPartToEditt);
         if (!error && provider.exception != null)
         {
             webPartToEditt.Error = provider.exception.ToString();
         }
     }
     this.RenderControls();
     this.SyncChanges();
     //}
 }