예제 #1
0
 public WpfMediaKitPanel(WpfMediaKitMedia media)
 {
     InitializeComponent();
     try
     {
         DataContext = media;
     }
     catch (Exception)
     {
     }
 }
 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);
     }
 }