Example #1
0
        private void DataModelStoreOnDataModelRemoved(object?sender, DataModelStoreEvent e)
        {
            if (e.Registration.DataModel.Feature.Id != Entity.DataModelId)
            {
                return;
            }

            Target = null;
            Invalidate();
        }
Example #2
0
        private void DataModelStoreOnDataModelAdded(object?sender, DataModelStoreEvent e)
        {
            if (e.Registration.DataModel.Feature.Id != Entity.DataModelId)
            {
                return;
            }

            Target = e.Registration.DataModel;
            Initialize();
        }
Example #3
0
        private void DataModelStoreOnDataModelAdded(object?sender, DataModelStoreEvent e)
        {
            if (e.Registration.DataModel.PluginInfo.Guid != Entity.DataModelGuid)
            {
                return;
            }

            Target = e.Registration.DataModel;
            Initialize();
        }
Example #4
0
        private void DataModelStoreOnDataModelRemoved(object?sender, DataModelStoreEvent e)
        {
            if (e.Registration.DataModel.PluginInfo.Guid != Entity.DataModelGuid)
            {
                return;
            }

            Target = null;
            Invalidate();
        }
Example #5
0
 private static void OnDataModelRemoved(DataModelStoreEvent e)
 {
     DataModelRemoved?.Invoke(null, e);
 }