/// <summary> /// Raise an operation /// </summary> /// <remarks> /// Only send if access to the UI thread is available /// </remarks> /// <param name="operation">The operation</param> /// <param name="targetType">Target type</param> /// <param name="key">Key</param> private void _RaiseOperation(SterlingOperation operation, Type targetType, object key) { var handler = SterlingOperationPerformed; if (handler == null) { return; } handler(this, new SterlingOperationArgs(operation, targetType, key)); }
public SterlingOperationArgs(SterlingOperation operation, Type targetType, object key) { TargetType = targetType; Operation = operation; Key = key; }
/// <summary> /// Raise an operation /// </summary> /// <remarks> /// Only send if access to the UI thread is available /// </remarks> /// <param name="operation">The operation</param> /// <param name="targetType">Target type</param> /// <param name="key">Key</param> private void _RaiseOperation(SterlingOperation operation, Type targetType, object key) { _RaiseOperation(operation, targetType, key, null); }