public DeshakerPanel(DeshakerStabilizer stabilizer)
 {
     InitializeComponent();
     try
     {
         _stabilizer = stabilizer;
         DataContext = stabilizer;
     }
     catch (Exception exc)
     {
     }
 }
 public DeshakerPanel(DeshakerStabilizer stabilizer)
 {
     InitializeComponent();
     try
     {
         _stabilizer = stabilizer;
         DataContext = stabilizer;
     }
     catch (Exception exc)
     {
     }
 }
Exemple #3
0
 public DeshakerPlugin()
 {
     try
     {
         Name = "Deshaker";
         var stabilizer = new DeshakerStabilizer();
         Content = stabilizer;
         Panel   = new DeshakerPanel(stabilizer);
         InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings));
     }
     catch (Exception exc)
     {
         Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc);
     }
 }