public WpfMediaKitPanel(WpfMediaKitMedia media) { InitializeComponent(); try { DataContext = media; } catch (Exception) { } }
public WpfMediaKitPanel(WpfMediaKitMedia media) { InitializeComponent(); try { DataContext = media; } catch (Exception exc) { } }
public WpfMediaKitPlugin() { try { Name = "Direct Show"; var media = new WpfMediaKitMedia(); Content = media; Panel = new WpfMediaKitPanel(media); InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings)); } catch (Exception exc) { Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc); } }