Ejemplo n.º 1
0
        public void Startup()
        {
            if (!_channels.Any())
            {
                return;
            }

            var system      = (ISystem)Interfaces.Available["ISystem"];
            var constructor = typeof(APPreviewDialog).GetConstructor(new[] { typeof(XmlNode), typeof(List <Channel>), typeof(int) });

            _previewDialog = (APPreviewDialog)system.InstantiateForm(constructor, _setupNode, _channels, _startChannel);
        }
Ejemplo n.º 2
0
        public void Shutdown()
        {
            if (_previewDialog != null)
            {
                if (_previewDialog.InvokeRequired)
                {
                    _previewDialog.BeginInvoke(new MethodInvoker(_previewDialog.Dispose));
                }
                else
                {
                    _previewDialog.Dispose();
                }
                _previewDialog = null;
            }

            _channels.Clear();
            _setupData = null;
            _setupNode = null;
        }
Ejemplo n.º 3
0
        public void Shutdown()
        {
            if (_previewDialog != null) {
                if (_previewDialog.InvokeRequired) {
                    _previewDialog.BeginInvoke(new MethodInvoker(_previewDialog.Dispose));
                }
                else {
                    _previewDialog.Dispose();
                }
                _previewDialog = null;
            }

            _channels.Clear();
            _setupData = null;
            _setupNode = null;
        }
Ejemplo n.º 4
0
        public void Startup()
        {
            if (!_channels.Any()) return;

            var system = (ISystem) Interfaces.Available["ISystem"];
            var constructor = typeof (APPreviewDialog).GetConstructor(new[] {typeof (XmlNode), typeof (List<Channel>), typeof (int)});

            _previewDialog = (APPreviewDialog) system.InstantiateForm(constructor, _setupNode, _channels, _startChannel);
        }