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); }
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; }
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); }