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