/// <inheritdoc /> public async Task ActivateAsync(bool activatedBefore) { if (!CanHandle(_remoteCommand)) { await NavigationProxy.PopModalAsync(); } }
public NavigationImpl( NavigationMonitoringTab navigationMonitoringTab, INavigation navigation) { _navigationMonitoringTab = navigationMonitoringTab; _navigation = (NavigationProxy)navigation; }
private void button_connect_Click(object sender, EventArgs e) { string ip = this.textBox1.Text; this.tts = new TextToSpeechProxy(ip, 9559); this.motion = new MotionProxy(ip, 9559); this.posture = new RobotPostureProxy(ip, 9559); this.navigation = new NavigationProxy(ip, 9559); Console.Beep(); this.label1.Text += "\nconnected."; }
public async Task PushesModalIntoNextInner() { var page = new ContentPage(); var navProxy = new NavigationProxy(); await navProxy.PushModalAsync(page); var navTest = new NavigationTest(); navProxy.Inner = navTest; Assert.AreEqual(page, navTest.LastPushedModal); }
public async Task TestPushModalWithInner() { var proxy = new NavigationProxy(); var inner = new NavigationTest(); proxy.Inner = inner; var child = new ContentPage { Content = new View() }; await proxy.PushModalAsync(child); Assert.AreEqual(child, inner.LastPushedModal); }
public async Task TestPopModalWithInner() { var proxy = new NavigationProxy(); var inner = new NavigationTest(); proxy.Inner = inner; var child = new ContentPage { Content = new View() }; await proxy.PushModalAsync(child); await proxy.PopModalAsync(); Assert.True(inner.PoppedModal, "Pop was never called on the inner proxy item"); }
public async Task TestPopWithInner() { var proxy = new NavigationProxy(); var inner = new NavigationTest(); proxy.Inner = inner; var child = new ContentPage { Content = new View() }; await proxy.PushAsync(child); var result = await proxy.PopAsync(); Assert.AreEqual(child, result); Assert.True(inner.Popped, "Pop was never called on the inner proxy item"); }
public void NavigationProxyWireUpTest() { var page = new ContentPage(); var shell = new Shell(); var shellItem = new ShellItem(); var shellSection = new ShellSection(); var shellContent = new ShellContent { Content = page }; shellSection.Items.Add(shellContent); shellItem.Items.Add(shellSection); shell.Items.Add(shellItem); NavigationProxy proxy = page.NavigationProxy.Inner as NavigationProxy; Assert.IsNotNull(proxy); var shellProxy = proxy.Inner; Assert.IsNotNull(shellProxy); }
internal NavigableElement() { Navigation = new NavigationProxy(); _mergedStyle = new MergedStyle(GetType(), this); }
internal VisualElement() { Navigation = new NavigationProxy(); _mergedStyle = new MergedStyle(GetType(), this); }
public TemplateNavigation() { Navigation = new NavigationProxy(); }
public void Constructor() { var proxy = new NavigationProxy(); Assert.Null(proxy.Inner); }
public async Task End() { await NavigationProxy.PopAsync(); }
public async Task Begin() { await NavigationProxy.PushAsync(new ContentPage { Content = this }); }