//* -----------------------------------------------------------------------*
        /// <summary>
        /// 読み出しデバイス選択ダイアログを終了した時に非同期で呼び出されます。
        /// ここから自動的に読み出し処理へ入ります。
        /// </summary>
        ///
        /// <param name="result">非同期操作のステータス</param>
        private void onSelectedDevice(IAsyncResult result)
        {
            CIOInfo.instance.device = CGuideWrapper.instance == null?
                                      Guide.EndShowStorageDeviceSelector(result) :
                                          CGuideWrapper.instance.EndShowStorageDeviceSelector(result);

            CIOInfo info = CIOInfo.instance;

            load(
                info.deviceReady ?
                info.getPath(fileName) : null);
        }
        //* -----------------------------------------------------------------------*
        /// <summary>設定データを補助記憶装置から読み出します。</summary>
        /// <remarks>
        /// XBOX360版ではアプリケーションとは非同期にダイアログが
        /// 表示されるので、出現中もアプリケーションは停止せず進行を続けます。
        /// </remarks>
        public void load()
        {
            CLogger.add(string.Format(Resources.IO_INFO_LOADING, fileName, typeName));
            CIOInfo info = CIOInfo.instance;

            if (info.deviceReady)
            {
                load(info.getPath(fileName));
            }
            else
            {
                if (CGuideWrapper.instance == null)
                {
                    Guide.BeginShowStorageDeviceSelector(onSelectedDevice, this);
                }
                else
                {
                    CGuideWrapper.instance.BeginShowStorageDeviceSelector(onSelectedDevice, this);
                }
            }
        }
Example #3
0
        //* -----------------------------------------------------------------------*
        /// <summary>設定データを補助記憶装置から読み出します。</summary>
        /// <remarks>
        /// XBOX360版ではアプリケーションとは非同期にダイアログが
        /// 表示されるので、出現中もアプリケーションは停止せず進行を続けます。
        /// </remarks>
        public void load()
        {
            CLogger.add(string.Format("{0}を{1}へ読込しています...。", fileName, typeName));
            CIOInfo info = CIOInfo.instance;

            if (info.deviceReady)
            {
                load(info.getPath(fileName));
            }
            else
            {
                if (CGuideWrapper.instance == null)
                {
                    Guide.BeginShowStorageDeviceSelector(onSelectedDevice, this);
                }
                else
                {
                    CGuideWrapper.instance.BeginShowStorageDeviceSelector(onSelectedDevice, this);
                }
            }
        }