internal void ShowSaveButton() { if (this.buttonsPanel != null) { this.buttonsPanel.Visible = true; if (!this.Slab.UsePropertyPageStyle) { SlabFrame.SetFocusCssOnSaveButton(this.buttonsPanel); } } }
private void ShowButtonPanelIfNeeded() { bool flag = false; if (this.showCloseButton) { flag = true; } else if (this.saveSlabFrames.Count > 0) { int count = this.saveSlabFrames.Count; this.saveSlabFrames = (from frame in this.saveSlabFrames where !frame.PropertiesControl.ReadOnly select frame).ToList <SlabFrame>(); if (this.ShowGlobalSaveButton()) { if (count != this.saveSlabFrames.Count) { List <WebServiceMethod> collection = (from saveFrame in this.saveSlabFrames select saveFrame.PropertiesControl.SaveWebServiceMethod).ToList <WebServiceMethod>(); this.buttonsPanel.SaveWebServiceMethods.Clear(); this.buttonsPanel.SaveWebServiceMethods.AddRange(collection); } SlabFrame.SetFocusCssOnSaveButton(this.buttonsPanel); flag = true; this.saveButtonClientID = this.buttonsPanel.CommitButtonClientID; } else if (this.saveSlabFrames.Count == 1) { SlabFrame slabFrame = this.saveSlabFrames[0]; if (slabFrame.Slab.AlwaysDockSaveButton) { slabFrame.Attributes.Add("fill", "100"); } slabFrame.ShowSaveButton(); this.saveButtonClientID = slabFrame.SaveButtonClientID; } } if (flag) { Panel panel = this.contentPanel; panel.CssClass += " btmSpc"; return; } if (this.buttonsPanel != null) { this.buttonsPanel.Visible = false; } }