Beispiel #1
0
 public PincushionPanel(PincushionEffect effect)
 {
     InitializeComponent();
     try
     {
         DataContext = effect;
     }
     catch (Exception exc)
     {
     }
 }
Beispiel #2
0
 public PincushionPlugin()
 {
     try
     {
         Name = "Pincushion";
         var effect = new PincushionEffect();
         Content = effect;
         Panel   = new PincushionPanel(effect);
         InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings));
     }
     catch (Exception exc)
     {
         Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc);
     }
 }