Example #1
0
        /// <summary>
        /// Begin process to display the StorageDevice selector UI.
        /// </summary>
        /// <returns>The show selector.</returns>
        /// <param name="sizeInBytes">Size (in bytes) of data to write.</param>
        /// <param name="directoryCount">Number of directories to write.</param>
        /// <param name="callback">Method to invoke when device is selected by player.</param>
        /// <param name="state">Request identifier object for callback (can be null).</param>
        public static IAsyncResult BeginShowSelector(
            int sizeInBytes,
            int directoryCount,
            AsyncCallback callback,
            object state
            )
        {
            IAsyncResult result = new ShowSelectorLie(state, null);

            if (callback != null)
            {
                callback(result);
            }
            return(result);
        }
Example #2
0
		/// <summary>
		/// Begin process to display the StorageDevice selector UI.
		/// </summary>
		/// <returns>The show selector.</returns>
		/// <param name="player">The PlayerIndex. Only PlayerIndex.One is valid on Windows.</param>
		/// <param name="sizeInBytes">Size (in bytes) of data to write.</param>
		/// <param name="directoryCount">Number of directories to write.</param>
		/// <param name="callback">Method to invoke when device is selected by player.</param>
		/// <param name="state">Request identifier object for callback (can be null).</param>
		public static IAsyncResult BeginShowSelector(
			PlayerIndex player,
			int sizeInBytes,
			int directoryCount,
			AsyncCallback callback,
			object state
		) {
			IAsyncResult result = new ShowSelectorLie(state, player);
			if (callback != null)
			{
				callback(result);
			}
			return result;
		}