예제 #1
0
 public DomePanel(DomeProjection projection)
 {
     InitializeComponent();
     try
     {
         DataContext = projection;
     }
     catch (Exception)
     {
     }
 }
예제 #2
0
 public DomePanel(DomeProjection projection)
 {
     InitializeComponent();
     try
     {
         DataContext = projection;
     }
     catch (Exception exc)
     {
     }
 }
예제 #3
0
 public DomePlugin()
 {
     try
     {
         Name = "Dome";
         var projection = new DomeProjection();
         Content = projection;
         Panel   = new DomePanel(projection);
         InjectConfig(PluginConfig.FromSettings(ConfigHelper.LoadConfig().AppSettings.Settings));
     }
     catch (Exception exc)
     {
         Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc);
     }
 }