示例#1
0
 public SpherePanel(SphereProjection projection)
 {
     InitializeComponent();
     try
     {
         DataContext = projection;
     }
     catch (Exception exc)
     {
     }
 }
示例#2
0
 public SpherePanel(SphereProjection projection)
 {
     InitializeComponent();
     try
     {
         DataContext = projection;
     }
     catch (Exception)
     {
     }
 }
示例#3
0
 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);
     }
 }