Subversion Repositories SoapBoxCore

Rev

Rev 8 | Rev 13 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8 Rev 12
Line 29... Line 29...
29
namespace SoapBox.Demo.HighScores
29
namespace SoapBox.Demo.HighScores
30
{
30
{
31
    /// <summary>
31
    /// <summary>
32
    /// Add a menu item to the view menu to launch the HighScores "Pad"
32
    /// Add a menu item to the view menu to launch the HighScores "Pad"
33
    /// </summary>
33
    /// </summary>
34
    [Export("/Workbench/MainMenu/ViewMenu", typeof(IMenuItem))]
34
    [Export(SoapBox.Core.ExtensionPoints.Workbench.MainMenu.ViewMenu, typeof(IMenuItem))]
35
    class ViewMenuHighScores : AbstractMenuItem
35
    class ViewMenuHighScores : AbstractMenuItem
36
    {
36
    {
37
        public ViewMenuHighScores()
37
        public ViewMenuHighScores()
38
        {
38
        {
39
            ID = "HighScores";
39
            ID = "HighScores";
Line 43... Line 43...
43
 
43
 
44
            Header = Resources.Strings.Workbench_MainMenu_View_HighScores;
44
            Header = Resources.Strings.Workbench_MainMenu_View_HighScores;
45
            ToolTip = Resources.Strings.Workbench_MainMenu_View_HighScores_ToolTip;
45
            ToolTip = Resources.Strings.Workbench_MainMenu_View_HighScores_ToolTip;
46
        }
46
        }
47
 
47
 
48
        [Import("/Workbench/LayoutManager", typeof(ILayoutManager))]
48
        [Import(SoapBox.Core.Services.Layout.LayoutManager, typeof(ILayoutManager))]
49
        private Lazy<ILayoutManager> layoutManager { get; set; }
49
        private Lazy<ILayoutManager> layoutManager { get; set; }
50
 
50
 
51
        [Import("/Workbench/Pads/HighScores")]
51
        [Import(CompositionPoints.Workbench.Pads.HighScores, typeof(HighScores))]
52
        private Lazy<HighScores> highScoresPad { get; set; }
52
        private Lazy<HighScores> highScoresPad { get; set; }
53
 
53
 
54
        protected override void Run()
54
        protected override void Run()
55
        {
55
        {
56
            layoutManager.Value.ShowPad(highScoresPad.Value);
56
            layoutManager.Value.ShowPad(highScoresPad.Value);