public DomePanel(DomeProjection projection) { InitializeComponent(); try { DataContext = projection; } catch (Exception) { } }
public DomePanel(DomeProjection projection) { InitializeComponent(); try { DataContext = projection; } catch (Exception exc) { } }
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); } }