예제 #1
0
        private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            // close the host upon closing the window
            host.DisableConnection();

            // kill overlays
            window.Dispose();
        }
예제 #2
0
 /// <summary>
 /// Release all unmanaged resources
 /// </summary>
 public new void Dispose()
 {
     _viewer.Dispose();
     _gw.Dispose();
     DestroyContexts();
     base.Dispose();
 }
예제 #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _window.Dispose();
     }
     // free native resources if there are any.
 }
예제 #4
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                _window.Dispose();

                disposedValue = true;
            }
        }
예제 #5
0
 public static void Stop()
 {
     Console.WriteLine("Overlay Stop.");
     overlayGraphics.Dispose();
     window.Dispose();
     //albionProcess.Exited -= AlbionProcess_Exited;
     //window.DestroyGraphics -= window_DestroyGraphics;
     //window.DrawGraphics -= window_DrawGraphics;
     //window.SetupGraphics -= window_SetupGraphics;
 }
예제 #6
0
        public void Stop()
        {
            if (window != null)
            {
                window.DrawGraphics    -= OnDrawGraphics;
                window.DestroyGraphics -= OnDestroyGraphics;
                window.SetupGraphics   -= OnSetupGraphics;
                window.Dispose();
                window = null;
            }

            brushes.Clear();

            lock (bufferLock)
            {
                read.Clear();
                write.Clear();
            }
        }
예제 #7
0
 public void Close()
 {
     _window.Dispose();
     _window.Join();
 }
 public void Stop()
 {
     _window.Dispose();
     _graphics.Dispose();
 }
예제 #9
0
 public void Close()
 {
     m_GraphicsWindow.Dispose();
 }