public CylinderPanel(CylinderProjection projection)
 {
     InitializeComponent();
     try
     {
         DataContext = projection;
     }
     catch (Exception exc)
     {
     }
 }
Пример #2
0
 public CylinderPlugin()
 {
     try
     {
         Name = "Cylinder";
         var projection = new CylinderProjection();
         Content = projection;
         Panel   = new CylinderPanel(projection);
         InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings));
     }
     catch (Exception exc)
     {
         Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc);
     }
 }