public WelcomeM(IAppPage previousPage) : base(previousPage) { StartModel = new StartM(this); HistoryModel = new HistoryM(this); AboutModel = new AboutM(this); }
/// <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; }
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(); }
public WorkM(IAppPage previousPage) : base(previousPage) { MembersInfo = new List<MemberInfo>(); FundraisingModel = new FundraisingM(this); MembersModel = new MembersM(this); _bar = CreateBar(); }
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; } }
private void RespondToVoiceCommand(VoiceCommandActivatedEventArgs e, IAppPage page) { CortanaCommand command = Cortana.ProcessCommand(e); page.RespondToVoice(command); // see MainPage for example }
public ServiceTestM(IAppPage previousPage) : base(previousPage) { }
/// <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; }
protected PageBase(IAppPage previousPage) { _previousPage = previousPage; }
private AppModel() { VersionNumber = GetVersionNumber(); _currentPage = GetStartPage(); }
/// <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(); }
public AboutM(IAppPage previousPage) : base(previousPage) { }
private void ChangePage(IAppPage page) { mainFrame.Content = page; }
public StartM(IAppPage previousPage) : base(previousPage) { }
public HistoryM(IAppPage previousPage) : base(previousPage) { }
private void RespondToForegroundVoiceCommand(VoiceCommandActivatedEventArgs e, IAppPage page) { CortanaCommand command = Cortana.ProcessCommand(e); page.RespondToVoice(command); // see MainPage for example }