コード例 #1
0
ファイル: LSilverlightPlus.cs プロジェクト: vb0067/LGame
 /// <summary>
 /// 调用XNA资源卸载函数(禁止重载)
 /// </summary>
 public void OnNavigatedFrom(NavigationEventArgs e)
 {
     if (process != null)
     {
         process.End();
         process.OnDestroy();
     }
     if (useXNAListener)
     {
         sl_listener.UnloadContent(GamePage);
     }
     XNA_UnloadContent();
     TargetElapsedTime.Stop();
     try
     {
         SharedGraphicsDeviceManager.Current.GraphicsDevice.SetSharingMode(false);
         this.Destory();
     }
     catch
     {
     }
     if (process != null)
     {
         process = null;
     }
 }
コード例 #2
0
ファイル: LGameXNA2DActivity.cs プロジェクト: nobcdz/LGame
 public void UnloadApp()
 {
     if (m_process != null)
     {
         m_process.End();
     }
     Printf("unloadApp");
 }
コード例 #3
0
 /// <summary>
 /// 调用XNA资源卸载函数(禁止重载)
 /// </summary>
 protected sealed override void UnloadContent()
 {
     if (process != null)
     {
         process.End();
     }
     if (useXNAListener)
     {
         xna_listener.UnloadContent(this);
     }
     XNA_UnloadContent();
     if (content != null)
     {
         content.Unload();
     }
 }