private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e) { // close the host upon closing the window host.DisableConnection(); // kill overlays window.Dispose(); }
/// <summary> /// Release all unmanaged resources /// </summary> public new void Dispose() { _viewer.Dispose(); _gw.Dispose(); DestroyContexts(); base.Dispose(); }
protected virtual void Dispose(bool disposing) { if (disposing) { _window.Dispose(); } // free native resources if there are any. }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { _window.Dispose(); disposedValue = true; } }
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; }
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(); } }
public void Close() { _window.Dispose(); _window.Join(); }
public void Stop() { _window.Dispose(); _graphics.Dispose(); }
public void Close() { m_GraphicsWindow.Dispose(); }