public void Startup() { if (!_channels.Any()) { return; } var system = (ISystem)Interfaces.Available["ISystem"]; var constructor = typeof(RGBTreePreviewDialog).GetConstructor(new[] { typeof(XmlNode), typeof(List <Channel>) }); _previewDialog = (RGBTreePreviewDialog)system.InstantiateForm(constructor, _setupNode, _channels); }
public void Shutdown() { if (_previewDialog != null) { if (_previewDialog.InvokeRequired) { _previewDialog.BeginInvoke(new MethodInvoker(_previewDialog.Dispose)); } else { _previewDialog.Dispose(); } _previewDialog = null; } _channels.Clear(); _setupNode = null; }
public void Startup() { if (!_channels.Any()) { return; } var system = (ISystem) Interfaces.Available["ISystem"]; var constructor = typeof (RGBTreePreviewDialog).GetConstructor(new[] {typeof (XmlNode), typeof (List<Channel>)}); _previewDialog = (RGBTreePreviewDialog) system.InstantiateForm(constructor, _setupNode, _channels); }