示例#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);
        }
示例#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;
        }
示例#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;
        }
示例#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);
        }