예제 #1
0
 private void PluginOnPluginDisabled(object sender, EventArgs e)
 {
     Plugin.PluginDisabled -= PluginOnPluginDisabled;
     if (IsInStore)
     {
         DataModelStore.Remove(this);
     }
 }
예제 #2
0
 private void OnDisabled(object?sender, EventArgs e)
 {
     PluginFeature.Disabled -= OnDisabled;
     if (IsInStore)
     {
         DataModelStore.Remove(this);
     }
 }
예제 #3
0
        /// <inheritdoc />
        public void Load()
        {
            Path = Entity.Path;

            if (Target == null && Entity.DataModelId != null)
            {
                Target = DataModelStore.Get(Entity.DataModelId)?.DataModel;
            }
        }