示例#1
0
        /// <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;
 }
示例#3
0
 /// <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);
 }
 public SterlingOperationArgs(SterlingOperation operation, Type targetType, object key)
 {
     TargetType = targetType;
     Operation = operation;
     Key = key;
 }