コード例 #1
0
 public WpfMediaKitPanel(WpfMediaKitMedia media)
 {
     InitializeComponent();
     try
     {
         DataContext = media;
     }
     catch (Exception)
     {
     }
 }
コード例 #2
0
 public WpfMediaKitPanel(WpfMediaKitMedia media)
 {
     InitializeComponent();
     try
     {
         DataContext = media;
     }
     catch (Exception exc)
     {
     }
 }
コード例 #3
0
 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);
     }
 }