Example #1
0
 public BarrelPanel(BarrelEffect effect)
 {
     InitializeComponent();
     try
     {
         DataContext = effect;
     }
     catch (Exception)
     {
     }
 }
Example #2
0
 public BarrelPanel(BarrelEffect effect)
 {
     InitializeComponent();
     try
     {
         DataContext = effect;
     }
     catch (Exception exc)
     {
     }
 }
Example #3
0
 public BarrelPlugin()
 {
     try
     {
         Name = "Barrel";
         var effect = new BarrelEffect();
         Content = effect;
         Panel   = null;
         InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings));
     }
     catch (Exception exc)
     {
         Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc);
     }
 }