示例#1
0
        public FirstRun()
        {
            this.cancelPage = new FirstRunCancelPage(this);
            this.pages = new List<Library.Code.V3.IFirstRunItem>();
            pages.Add(new FirstRunStartPage(this));
            pages.Add(new FirstRunConfigureStartMenu(this));
            pages.Add(new FirstRunFinishPage(this));

            this.FirstRunTitle = "Open Media Library Setup";
            this.currentPage = pages[0];

            this.backCommand = new Command(this);
            this.backCommand.Description = "Back";
            this.backCommand.Invoked+=new EventHandler(backCommand_Invoked);

            this.nextCommand = new Command(this);
            this.nextCommand.Description = "Next";
            this.nextCommand.Invoked += new EventHandler(nextCommand_Invoked);

            this.cancelCommand = new Command(this);
            this.cancelCommand.Description = "Cancel";
            this.cancelCommand.Invoked += new EventHandler(cancelCommand_Invoked);

            this.finishCommand = new Command(this);
            this.finishCommand.Description = "Finish";
            this.finishCommand.Invoked += new EventHandler(finishCommand_Invoked);
        }
示例#2
0
        public FirstRun()
        {
            this.cancelPage = new FirstRunCancelPage(this);
            this.pages      = new List <Library.Code.V3.IFirstRunItem>();
            pages.Add(new FirstRunStartPage(this));
            pages.Add(new FirstRunConfigureStartMenu(this));
            pages.Add(new FirstRunFinishPage(this));


            this.FirstRunTitle = "Open Media Library Setup";
            this.currentPage   = pages[0];

            this.backCommand             = new Command(this);
            this.backCommand.Description = "Back";
            this.backCommand.Invoked    += new EventHandler(backCommand_Invoked);

            this.nextCommand             = new Command(this);
            this.nextCommand.Description = "Next";
            this.nextCommand.Invoked    += new EventHandler(nextCommand_Invoked);

            this.cancelCommand             = new Command(this);
            this.cancelCommand.Description = "Cancel";
            this.cancelCommand.Invoked    += new EventHandler(cancelCommand_Invoked);

            this.finishCommand             = new Command(this);
            this.finishCommand.Description = "Finish";
            this.finishCommand.Invoked    += new EventHandler(finishCommand_Invoked);
        }
示例#3
0
        void nextCommand_Invoked(object sender, EventArgs e)
        {
            this.currentPage = this.pages[this.pages.IndexOf(this.currentPage) + 1];
            Dictionary <string, object> properties = new Dictionary <string, object>();

            properties["Page"] = this;
            //properties["Application"] = OMLApplication.Current;

            this.goingForward = true;
            OMLApplication.Current.Session.GoToPage("resx://Library/Library.Resources/V3_FirstRunBackground", properties);
        }
示例#4
0
        void cancelCommand_Invoked(object sender, EventArgs e)
        {
            ((FirstRunCancelPage)this.cancelPage).LastPage = this.currentPage;
            this.currentPage = this.cancelPage;
            Dictionary <string, object> properties = new Dictionary <string, object>();

            properties["Page"] = this;
            //properties["Application"] = OMLApplication.Current;

            this.goingForward = true;
            OMLApplication.Current.Session.GoToPage("resx://Library/Library.Resources/V3_FirstRunBackground", properties);
        }
示例#5
0
        void nextCommand_Invoked(object sender, EventArgs e)
        {
            this.currentPage = this.pages[this.pages.IndexOf(this.currentPage) + 1];
            Dictionary<string, object> properties = new Dictionary<string, object>();

            properties["Page"] = this;
            //properties["Application"] = OMLApplication.Current;

            this.goingForward = true;
            OMLApplication.Current.Session.GoToPage("resx://Library/Library.Resources/V3_FirstRunBackground", properties);
        }
示例#6
0
        void cancelCommand_Invoked(object sender, EventArgs e)
        {
            ((FirstRunCancelPage)this.cancelPage).LastPage = this.currentPage;
            this.currentPage = this.cancelPage;
            Dictionary<string, object> properties = new Dictionary<string, object>();

            properties["Page"] = this;
            //properties["Application"] = OMLApplication.Current;

            this.goingForward = true;
            OMLApplication.Current.Session.GoToPage("resx://Library/Library.Resources/V3_FirstRunBackground", properties);
        }