コード例 #1
0
 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);
     }
 }