private OrganizationGeneralSettings GetSettings()
        {
            var settings = new OrganizationGeneralSettings
            {
                OrganizationLogoUrl = txtOrganizationLogoUrl.Text
            };

            return settings;
        }
        private bool SaveGeneralSettings(OrganizationGeneralSettings settings)
        {
            try
            {
                ES.Services.Organizations.UpdateOrganizationGeneralSettings(PanelRequest.ItemID, GetSettings());
            }
            catch (Exception ex)
            {
                ShowErrorMessage("ORANIZATIONSETTINGS_NOT_UPDATED", ex);
                return false;
            }

            return true;
        }
Exemplo n.º 3
0
 /// <remarks/>
 public void UpdateOrganizationGeneralSettingsAsync(int itemId, OrganizationGeneralSettings settings, object userState) {
     if ((this.UpdateOrganizationGeneralSettingsOperationCompleted == null)) {
         this.UpdateOrganizationGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationGeneralSettingsOperationCompleted);
     }
     this.InvokeAsync("UpdateOrganizationGeneralSettings", new object[] {
                 itemId,
                 settings}, this.UpdateOrganizationGeneralSettingsOperationCompleted, userState);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void UpdateOrganizationGeneralSettingsAsync(int itemId, OrganizationGeneralSettings settings) {
     this.UpdateOrganizationGeneralSettingsAsync(itemId, settings, null);
 }
Exemplo n.º 5
0
 /// <remarks/>
 public System.IAsyncResult BeginUpdateOrganizationGeneralSettings(int itemId, OrganizationGeneralSettings settings, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("UpdateOrganizationGeneralSettings", new object[] {
                 itemId,
                 settings}, callback, asyncState);
 }
Exemplo n.º 6
0
 public void UpdateOrganizationGeneralSettings(int itemId, OrganizationGeneralSettings settings) {
     this.Invoke("UpdateOrganizationGeneralSettings", new object[] {
                 itemId,
                 settings});
 }
 public void UpdateOrganizationGeneralSettings(int itemId, OrganizationGeneralSettings settings)
 {
     OrganizationController.UpdateOrganizationGeneralSettings(itemId, settings);
 }