public CubePanel(CubeProjection projection) { InitializeComponent(); try { DataContext = projection; } catch (Exception exc) { } }
public CubePlugin() { try { Name = "Cube"; var projection = new CubeProjection(); Content = projection; Panel = null; } catch (Exception exc) { Logger.Instance.Error(string.Format("Error while loading '{0}'", GetType().FullName), exc); } }