public FilePanel(FileProjection projection) { InitializeComponent(); try { _projection = projection; DataContext = projection; } catch (Exception exc) { } }
public FilePlugin() { try { Name = "File"; var projection = new FileProjection(); Content = projection; Panel = new FilePanel(projection); InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings)); } catch (Exception exc) { Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc); } }