public ColorKeyAlphaPanel(ColorKeyAlphaEffect effect) { InitializeComponent(); try { DataContext = effect; } catch (Exception exc) { } }
public ColorKeyAlphaPlugin() { try { Name = "Shazzam / ColorKey Alpha"; var effect = new ColorKeyAlphaEffect(); Content = effect; Panel = new ColorKeyAlphaPanel(effect); } catch (Exception exc) { Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc); } }