public override void Dispose() { if (displayForm != null) { displayForm.Close(); } VixenSystem.Contexts.ContextCreated -= ProgramContextCreated; VixenSystem.Contexts.ContextReleased -= ProgramContextReleased; base.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { if (_displayForm != null) { _displayForm.Close(); } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing) { if (displayForm != null) { displayForm.Close(); } VixenSystem.Contexts.ContextCreated -= ProgramContextCreated; VixenSystem.Contexts.ContextReleased -= ProgramContextReleased; } base.Dispose(disposing); }
public override bool Setup() { _setupForm = new VixenPreviewSetup3(); var data = GetDataModel(); _setupForm.Data = data; _setupForm.ShowDialog(); if (data.UseOpenGL && _displayForm?.GetType() != typeof(OpenGlPreviewForm)) { _displayForm?.Close(); SetupPreviewForm(); } if (_displayForm != null) { _displayForm.Data = GetDataModel(); _displayForm.Setup(); } return(base.Setup()); }