示例#1
0
 public override void Dispose()
 {
     if (displayForm != null)
     {
         displayForm.Close();
     }
     VixenSystem.Contexts.ContextCreated  -= ProgramContextCreated;
     VixenSystem.Contexts.ContextReleased -= ProgramContextReleased;
     base.Dispose();
 }
示例#2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_displayForm != null)
                {
                    _displayForm.Close();
                }
            }

            base.Dispose(disposing);
        }
示例#3
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (displayForm != null)
                {
                    displayForm.Close();
                }
                VixenSystem.Contexts.ContextCreated  -= ProgramContextCreated;
                VixenSystem.Contexts.ContextReleased -= ProgramContextReleased;
            }

            base.Dispose(disposing);
        }
示例#4
0
        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());
        }