private void PluginOnPluginDisabled(object sender, EventArgs e) { Plugin.PluginDisabled -= PluginOnPluginDisabled; if (IsInStore) { DataModelStore.Remove(this); } }
private void OnDisabled(object?sender, EventArgs e) { PluginFeature.Disabled -= OnDisabled; if (IsInStore) { DataModelStore.Remove(this); } }
/// <inheritdoc /> public void Load() { Path = Entity.Path; if (Target == null && Entity.DataModelId != null) { Target = DataModelStore.Get(Entity.DataModelId)?.DataModel; } }