Exemple #1
0
 public void UpdateHeader(MVRuleSettingsMultiColumnHeader header)
 {
     header.OnAddVariantClicked        += () => OnAddVariantClicked?.Invoke();
     header.OnVariantUpdated           += (oldVariant, newVariant) => OnVariantUpdated?.Invoke(oldVariant, newVariant);
     header.OnDeleteVariant            += (variantId) => OnVariantDeleted(variantId);
     header.OnSelectAllSettingsClicked += (allSettingsToggle) => OnSelectAllSettingsToggleClicked?.Invoke(allSettingsToggle);
     multiColumnHeader = header;
 }
Exemple #2
0
 public MVRuleSettingsTreeView(TreeViewState state, MVRuleSettingsMultiColumnHeader multiColumnHeader, JArray settingsList,
                               bool enableEditingSettingsKeys = true) : base(state, multiColumnHeader)
 {
     this.rowHeight    = 18f;
     this.settingsList = settingsList;
     this.enableEditingSettingsKeys                = enableEditingSettingsKeys;
     multiColumnHeader.OnAddVariantClicked        += () => OnAddVariantClicked?.Invoke();
     multiColumnHeader.OnSelectAllSettingsClicked += (allSettingsToggle) => OnSelectAllSettingsToggleClicked?.Invoke(allSettingsToggle);
     useScrollView = true;
     Reload();
 }