Esempio n. 1
0
 public WelcomeM(IAppPage previousPage)
     : base(previousPage)
 {
     StartModel = new StartM(this);
     HistoryModel = new HistoryM(this);
     AboutModel = new AboutM(this);
 }
Esempio n. 2
0
        /// <summary>
        /// Tworzy model modułu odpowiedzialnego za wprowadzanie wysokości wkładu.
        /// </summary>
        /// <param name="previousPage">Poprzednia strona aplikacji (wybieranie użytkownika).</param>
        /// <param name="workPage">Główna strona robocza z listą wszystkich uczestników.</param>
        /// <param name="member">Uczestnik wybrany na poprzedniej stronie.</param>
        public AddValueM(IAppPage previousPage, IAppPage workPage, SelectedMember member)
            : base(previousPage)
        {
            _bar = CreateBar();
            _workPage = workPage;

            Member = member;
        }
Esempio n. 3
0
        private void RespondToBackgroundVoiceCommand(ProtocolActivatedEventArgs e, IAppPage page)
        {
            var commandArgs = e as ProtocolActivatedEventArgs;

            Windows.Foundation.WwwFormUrlDecoder decoder = new Windows.Foundation.WwwFormUrlDecoder(commandArgs.Uri.Query);
            var passedArg = decoder.GetFirstValueByName("LaunchContext");

            // Ensure the current window is active.
            Window.Current.Activate();
        }
Esempio n. 4
0
        public WorkM(IAppPage previousPage)
            : base(previousPage)
        {
            MembersInfo = new List<MemberInfo>();

            FundraisingModel = new FundraisingM(this);
            MembersModel = new MembersM(this);

            _bar = CreateBar();
        }
Esempio n. 5
0
        protected async override void OnActivated(IActivatedEventArgs e)
        {
            IAppPage page = GetCurrentPage() as IAppPage;

            ActivationKind kind = e.Kind;

            switch (kind)
            {
            case Windows.ApplicationModel.Activation.ActivationKind.VoiceCommand:

                //await Cortana.InstallFilenamePhrase();

                RespondToForegroundVoiceCommand(e as VoiceCommandActivatedEventArgs, page);
                break;
                //case ActivationKind.Protocol:
                //    RespondToBackgroundVoiceCommand(e as ProtocolActivatedEventArgs, page);
                //    break;
            }
        }
Esempio n. 6
0
 private void RespondToVoiceCommand(VoiceCommandActivatedEventArgs e, IAppPage page)
 {
     CortanaCommand command = Cortana.ProcessCommand(e);
     page.RespondToVoice(command); // see MainPage for example
 }
Esempio n. 7
0
 public ServiceTestM(IAppPage previousPage)
     : base(previousPage)
 {
 }
Esempio n. 8
0
 /// <summary>
 /// Ustawia przekazaną podstronę jako aktualnie wyświetlaną w aplikacji.
 /// </summary>
 /// <param name="newPage">Podstrona do wyświetlenia.</param>
 protected void GoToPage(IAppPage newPage)
 {
     AppModel.AppModelInstance.CurrentPage = newPage;
 }
Esempio n. 9
0
 protected PageBase(IAppPage previousPage)
 {
     _previousPage = previousPage;
 }
Esempio n. 10
0
 private AppModel()
 {
     VersionNumber = GetVersionNumber();
     _currentPage = GetStartPage();
 }
Esempio n. 11
0
 /// <summary>
 /// Tworzy model modułu odpowiedzialnego za wprowadzanie nazwy nowego uczestnika.
 /// </summary>
 /// <param name="previousPage">Poprzednia strona aplikacji.</param>
 public AddMemberM(IAppPage previousPage)
     : base(previousPage)
 {
     _bar = CreateBar();
 }
Esempio n. 12
0
        private void RespondToBackgroundVoiceCommand(ProtocolActivatedEventArgs e, IAppPage page)
        {
            var commandArgs = e as ProtocolActivatedEventArgs;
            Windows.Foundation.WwwFormUrlDecoder decoder = new Windows.Foundation.WwwFormUrlDecoder(commandArgs.Uri.Query);
            var passedArg = decoder.GetFirstValueByName("LaunchContext");

            // Ensure the current window is active.
            Window.Current.Activate();
        }
Esempio n. 13
0
 public AboutM(IAppPage previousPage)
     : base(previousPage)
 {
 }
Esempio n. 14
0
 private void ChangePage(IAppPage page)
 {
     mainFrame.Content = page;
 }
Esempio n. 15
0
 public StartM(IAppPage previousPage)
     : base(previousPage)
 {
 }
Esempio n. 16
0
 public HistoryM(IAppPage previousPage)
     : base(previousPage)
 {
 }
Esempio n. 17
0
        private void RespondToForegroundVoiceCommand(VoiceCommandActivatedEventArgs e, IAppPage page)
        {
            CortanaCommand command = Cortana.ProcessCommand(e);

            page.RespondToVoice(command); // see MainPage for example
        }