Пример #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);
 }
Пример #4
0
 public SterlingOperationArgs(SterlingOperation operation, Type targetType, object key)
 {
     TargetType = targetType;
     Operation = operation;
     Key = key;
 }