protected override void CreateChildControls()
 {
     base.CreateChildControls();
     this.UpdateWebServiceMethod                = new WebServiceMethod();
     this.UpdateWebServiceMethod.ID             = "UpdateTimeZone";
     this.UpdateWebServiceMethod.ServiceUrl     = base.ServiceUrl;
     this.UpdateWebServiceMethod.Method         = "UpdateObject";
     this.UpdateWebServiceMethod.ParameterNames = WebServiceParameterNames.Identity;
     this.Controls.Add(this.UpdateWebServiceMethod);
 }
Пример #2
0
 protected override void CreateChildControls()
 {
     base.CreateChildControls();
     this.ClearSettingsWebServiceMethod                = new WebServiceMethod();
     this.ClearSettingsWebServiceMethod.ServiceUrl     = base.ServiceUrl;
     this.ClearSettingsWebServiceMethod.ID             = "ClearSettings";
     this.ClearSettingsWebServiceMethod.Method         = "ClearSettings";
     this.ClearSettingsWebServiceMethod.ParameterNames = WebServiceParameterNames.Identity;
     this.Controls.Add(this.ClearSettingsWebServiceMethod);
 }
 protected override void CreateChildControls()
 {
     base.CreateChildControls();
     this.SendLogWebServiceMethod                = new WebServiceMethod();
     this.SendLogWebServiceMethod.ID             = "SendCalendarDiagnosticLog";
     this.SendLogWebServiceMethod.ServiceUrl     = base.ServiceUrl;
     this.SendLogWebServiceMethod.Method         = "SendLog";
     this.SendLogWebServiceMethod.ParameterNames = WebServiceParameterNames.Custom;
     base.ContentContainer.Controls.Add(this.SendLogWebServiceMethod);
 }
Пример #4
0
 protected override void CreateChildControls()
 {
     base.CreateChildControls();
     this.SendVerificationCodeWebServiceMethod                = new WebServiceMethod();
     this.SendVerificationCodeWebServiceMethod.ID             = "SendVerificationCode";
     this.SendVerificationCodeWebServiceMethod.Method         = "SendVerificationCode";
     this.SendVerificationCodeWebServiceMethod.ServiceUrl     = base.ServiceUrl;
     this.SendVerificationCodeWebServiceMethod.ParameterNames = WebServiceParameterNames.SetObject;
     this.Controls.Add(this.SendVerificationCodeWebServiceMethod);
 }
Пример #5
0
 protected override void CreateChildControls()
 {
     base.CreateChildControls();
     if (this.disableMethodName != null)
     {
         this.DisableWebServiceMethod                = new WebServiceMethod();
         this.DisableWebServiceMethod.ID             = "Disable";
         this.DisableWebServiceMethod.Method         = this.disableMethodName;
         this.DisableWebServiceMethod.ServiceUrl     = base.ServiceUrl;
         this.DisableWebServiceMethod.ParameterNames = WebServiceParameterNames.Identity;
         this.Controls.Add(this.DisableWebServiceMethod);
     }
 }
Пример #6
0
 internal void InitSaveButton()
 {
     if (this.PropertiesControl != null)
     {
         this.buttonsPanel       = new ButtonsPanel();
         this.buttonsPanel.State = ButtonsPanelState.Save;
         this.Controls.Add(this.buttonsPanel);
         WebServiceMethod saveWebServiceMethod = this.PropertiesControl.SaveWebServiceMethod;
         if (saveWebServiceMethod != null)
         {
             this.buttonsPanel.SaveWebServiceMethods.Add(saveWebServiceMethod);
         }
     }
 }
Пример #7
0
        private void AddButtonPanel()
        {
            this.saveSlabFrames = new List <SlabFrame>();
            List <WebServiceMethod> list = new List <WebServiceMethod>();

            foreach (SlabFrame slabFrame in this.slabFrames)
            {
                if (slabFrame.PropertiesControl != null && slabFrame.PropertiesControl.HasSaveMethod)
                {
                    this.saveSlabFrames.Add(slabFrame);
                    slabFrame.InitSaveButton();
                    WebServiceMethod saveWebServiceMethod = slabFrame.PropertiesControl.SaveWebServiceMethod;
                    if (saveWebServiceMethod != null)
                    {
                        list.Add(saveWebServiceMethod);
                    }
                }
            }
            if (this.ShowGlobalSaveButton() || this.showCloseButton)
            {
                this.buttonsPanel = new ButtonsPanel();
                if (this.showCloseButton)
                {
                    this.buttonsPanel.State = ButtonsPanelState.ReadOnly;
                    ButtonsPanel buttonsPanel = this.buttonsPanel;
                    buttonsPanel.CssClass += " glbClsPnl";
                    this.buttonsPanel.CloseWindowOnCancel = true;
                }
                else
                {
                    this.buttonsPanel.State = ButtonsPanelState.Save;
                    ButtonsPanel buttonsPanel2 = this.buttonsPanel;
                    buttonsPanel2.CssClass += " glbSvPnl";
                    this.buttonsPanel.SaveWebServiceMethods.AddRange(list);
                }
                this.buttonsPanel.Attributes.Add("dock", "bottom");
                this.Controls.Add(this.buttonsPanel);
            }
            if (this.saveSlabFrames.Count > 0)
            {
                base.Attributes.Add("data-type", "MultiPropertyPageViewModel");
            }
        }