Пример #1
0
 protected virtual void AddHeader()
 {
     HeaderPanel = ComponentPool.Get <HeaderPanelType>(PropertiesPanel);
     HeaderPanel.Init(EditObject);
     HeaderPanel.OnSaveAsset += SaveAsset;
     HeaderPanel.OnEdit      += StartEditTemplate;
     HeaderPanel.OnSave      += SaveChanges;
     HeaderPanel.OnNotSave   += NotSaveChanges;
 }
Пример #2
0
 private void ToggleAsDefault()
 {
     TemplateManager.StyleManager.ToggleAsDefaultTemplate(EditObject);
     ItemsPanel.RefreshItems();
     HeaderPanel.Init(EditObject);
 }