Beispiel #1
0
 public HemispherePanel(HemisphereProjection projection)
 {
     InitializeComponent();
     try
     {
         DataContext = projection;
     }
     catch (Exception exc)
     {
     }
 }
 public HemispherePlugin()
 {
     try
     {
         Name = "Hemisphere";
         var projection = new HemisphereProjection();
         Content = projection;
         Panel   = new HemispherePanel(projection);
         InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings));
     }
     catch (Exception exc)
     {
         Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc);
     }
 }