public void Execute(ClientContext ctx, Navigation source, string title) { Logger.Verbose($"Started executing {nameof(RemoveNavigationNode)} for item '{title}' in '{source}' on url '{ctx.Url}'"); var navigation = ctx.Web.Navigation; NavigationNodeCollection nodes = null; switch (source) { case Navigation.None: throw new ArgumentException("Uninitialized navigation source"); case Navigation.QuickLaunch: nodes = navigation.QuickLaunch; break; case Navigation.TopNavigationBar: nodes = navigation.TopNavigationBar; break; default: throw new ArgumentException($"Unsupported navigation source: {source}"); } ctx.Load(nodes); ctx.ExecuteQuery(); var candidate = nodes.SingleOrDefault(n => n.Title == title); if (candidate == null) { Logger.Warning($"Navigation item '{title}' not present"); return; } candidate.DeleteObject(); ctx.ExecuteQuery(); }
public override void Start(Navigation.IPlanningWorld world) { base.Start(world); System.Diagnostics.Debug.Assert(world is IPathTerrain); m_pathTerrain = world as IPathTerrain; }
public EditNavigationViewModel(int id) { var excludeSchemasNavigation = ConfigurationManager.AppSettings["ExcludeSchemasForNavigation"].Split(',').Select(int.Parse); // Grab Every Page and Id so we can list it in the dropdown PageIdNameCollection = Context.ContentPages.Where(x => x.IsActive.Value && !x.IsRevision && (x.SchemaId == null || !excludeSchemasNavigation.Contains(x.SchemaId.Value))).Select(x => new { x.ContentPageId, x.Title }).OrderBy(x => x.Title).ToDictionary(o => o.ContentPageId, o => o.Title); //PromoModules = context.ContentModules.Where(m => m.SchemaId == 3).ToList(); TheNav = Context.Navigations.Single(x => x.NavigationId == id); BookmarkTitle = TheNav.Name; // Grab the top level items first, then populate their children if (TheNav != null) { TopLevelNavItems = Context.NavigationItems.Where(x => x.ParentNavigationId == TheNav.NavigationId && x.ParentNavigationItemId < 0).OrderBy(x => x.Order).ToList(); if (TopLevelNavItems.Count > 0) { TopLevelNavItems = PopulateNavList(TopLevelNavItems); } } }
public Menu AddNavigation(Navigation navigationBuilder) { navigationBuilder.ViewContext = this.ViewContext; navigationBuilder.Component.HtmlProperties.Id = Resolvers.HtmlResolver.GenerateHtmlValidId(this.ViewContext, navigationBuilder.GetType()); this.ContainerElements.Add(navigationBuilder); return this; }
public void TestNavigationItemSeparator() { HtmlHelper htmlHelper = FakeHtmlHelper.CreateFakeHtmlHelper(FakeHtmlHelper.CreateFakeViewDataDictionary()); var comparer = new Navigation().AddSeparator().ToHtmlString(); string result="<ul class=\"nav\"><li class=\"divider\"></li></ul>"; Assert.AreEqual(comparer, result); }
public void Reset(ISettings settings, ILogicSettings logicSettings) { Client = new Client(Settings) {AuthType = settings.AuthType}; // ferox wants us to set this manually Inventory = new Inventory(Client, logicSettings); Navigation = new Navigation(Client); }
public override void init() { combatData = gameObject.GetComponent<Combat>(); movement = gameObject.GetComponent<Navigation>(); ai = GetComponent<HasObjectivePath>(); }
public ActionResult AddNavigation() { // Create a new Content Page to be passed to the edit content action var nav = new Navigation() { Name = "Temp" }; // Add the nav Context.Navigations.Add(nav); Context.SaveChanges(); // Add a top level item to get started var navItem = new NavigationItem() { Name = "SubNav Item", ParentNavigationId = nav.NavigationId, ParentNavigationItemId = -2 }; Context.NavigationItems.Add(navItem); Context.SaveChanges(); // Update the Navigation Name with the new id we now have nav.Name = "Navigation " + nav.NavigationId; Context.SaveChanges(); return RedirectToAction("EditNav", "Navigation", new { id = nav.NavigationId }); }
private void CreateNavigation() { for (int i = 0; i < menuElements.Count; i++) { Selectable next = null; Selectable previous = null; FindNeighbours(i, ref next, ref previous); // Create an initialise new Navigation object, then assign it to the current Selectable Navigation navigation; switch (navigationMode) { case NavigationMode.Vertical: navigation = new Navigation() { mode = Navigation.Mode.Explicit, selectOnUp = previous, selectOnDown = next }; break; case NavigationMode.Horizontal: navigation = new Navigation() { mode = Navigation.Mode.Explicit, selectOnLeft = previous, selectOnRight = next }; break; default: navigation = new Navigation() { mode = Navigation.Mode.Explicit }; break; } menuElements[i].navigation = navigation; } }
public void BeforeEachTest() { _webRequester = new FakeWebRequester(""); _driver = new HttpDriver(_webRequester); _navigation = new Navigation(_driver); }
public void Reset(ISettings settings, ILogicSettings logicSettings) { Client = new Client(Settings); LogicClient = new LogicClient(LogicSettings); Inventory = new Inventory(Client, LogicClient); Navigation = new Navigation(Client); }
/// <summary> /// Initializes the <see cref="Common.UI.Popups.Internal.PopupMenuCommon"/> class. /// </summary> static PopupMenuCommon() { DebugEx.Verbose("Static class PopupMenuCommon initialized"); defaultNavigation = Navigation.defaultNavigation; noneNavigation = new Navigation(); noneNavigation.mode = Navigation.Mode.None; }
public ActionResult Menu(Navigation nav) { var model = new Menu { Nav = nav }; return PartialView("_Menu", model); }
protected override void OnInit(EventArgs e) { base.OnInit(e); Navigation navigation = new Navigation(); navigation.Page = this; presenter = new AboutUsPresenter(this, navigation); }
protected override void OnInit(EventArgs e) { base.OnInit(e); Navigation navigation = new Navigation(); navigation.Page = this.Parent.Page; presenter = new SnipeItPresenter(this, navigation); }
void _vm_ValidaAccesoComplete(Model.Dto.DtoValidaAcceso e) { int cu = CasosDeUso.getCodigoCU(e.operacion); Resultado res = CasosDeUso.getResultado((Application.Current as App).matrix, cu, (int)(Application.Current as App).EstatusToken, (int)(Application.Current as App).EstatusSoftToken); if (!string.IsNullOrEmpty(e.operacion)) { if (e.operacion.Equals(ClavesOperacion.AsociarCuentaMovil)) { _navigation = Navigation.AsociarCuentaNumeroMovil; } } else { _navigation = Navigation.DetalleCuentasRegistradas; } if (!_vm.EstatusTokenValido) { MensajeToken((EstatusToken)Enum.Parse(typeof(EstatusToken), res.estado, true)); return; } else { if (_vm.IsTokenInicial) { if ("TF".Equals(res.token)) { token.Show(); } else if ("ST".Equals(res.token)) { TokenManager.obtenerCore(); String error = TokenManager.coreInicializadoCorrecto(); if ("".Equals(error)) { token2.Show(this._vm.IsTokenFinal, e.operacion, (App.Current as App).CodigoCliente); } else { MessageBox.Show(error); } } } else { switch (_navigation) { case Navigation.AsociarCuentaNumeroMovil: InitAsociarCuentaNumeroMovilViewModel(); break; } } } }
public void Start(YellowstonePathology.Business.Test.AccessionOrder accessionOrder, Navigation.PageNavigator pageNavigator) { if(this.m_DialogIsActive == false) { this.m_PageNavigator = pageNavigator; AppMessaging.LockRequestPage page = new AppMessaging.LockRequestPage(accessionOrder); pageNavigator.Navigate(page); this.m_DialogIsActive = true; } }
void Start() { character = GetComponent<Character> (); navigation = GetComponent<Navigation>(); combatData = GetComponent<Combat>(); abilities = GetComponent<Abilities>(); }
void Death() { navigation = gameObject.GetComponent<Navigation> (); if (navigation != null) { navigation.isRIP = false; navigation.enabled = false; } isDead = true; Sink (); collider.isTrigger = true; }
private void AccessionOrderPath_Return(object sender, Navigation.PageNavigationReturnEventArgs e) { switch (e.PageNavigationDirectionEnum) { case UI.Navigation.PageNavigationDirectionEnum.Back: this.ShowReviewClientOrderPage(this.m_PatientRecentAccessions); break; case UI.Navigation.PageNavigationDirectionEnum.Finish: this.Return(this, e); break; } }
// Update is called once per frame void Update() { if (this.gameObject.transform.childCount == 5 ) { Navigation customNav = new Navigation(); customNav.mode = Navigation.Mode.Automatic; dropdown.navigation = customNav; } else if (!this.CDC.hideBehaviour.OnScreen) { Navigation customNav = new Navigation(); customNav.mode = Navigation.Mode.Explicit; customNav.selectOnDown = Quality; dropdown.navigation = customNav; } }
protected void EnemyType_Awake() { //Debug.Log("enemy type awake"); _transform = transform; _camera = GameObject.Find("Main Camera").GetComponent<Camera>(); enemymanager = _camera.GetComponent<EnemyManager>(); debugmanager = GameObject.Find("DebugManager").GetComponent<DebugManager>(); eventmanager = _camera.GetComponent<EventManager>(); //resourceManager = _camera.GetComponent<ResourceManager>(); navigation = _camera.GetComponent<Navigation>(); //Получаем доступ к классу myLayerMask = enemymanager.myLayerMask; }
protected override void DrawSingleFrame(int iteration, Scene scene, Navigation navigation) { Vector2 localPinholePos = navigation.Camera.GetPinholePos(unitDiskSamples[iteration]); Matrix4 perspective = navigation.Camera.GetMultiViewPerspective(localPinholePos); GL.MatrixMode(MatrixMode.Projection); GL.PushMatrix(); GL.LoadMatrix(ref perspective); GL.Translate(-localPinholePos.X, -localPinholePos.Y, 0); scene.Draw(); GL.PopMatrix(); }
/// <summary> /// Initializes the <see cref="Common.UI.Popups.Internal.PopupMenuCommon"/> class. /// </summary> static PopupMenuCommon() { buttonSpriteState = new SpriteState(); buttonDisabledSpriteState = new SpriteState(); buttonSpriteState.disabledSprite = Assets.Popups.Textures.button; buttonSpriteState.highlightedSprite = Assets.Popups.Textures.buttonHighlighted; buttonSpriteState.pressedSprite = Assets.Popups.Textures.buttonHighlighted; buttonDisabledSpriteState.disabledSprite = Assets.Popups.Textures.button; buttonDisabledSpriteState.highlightedSprite = Assets.Popups.Textures.buttonDisabled; buttonDisabledSpriteState.pressedSprite = Assets.Popups.Textures.buttonDisabled; defaultNavigation = Navigation.defaultNavigation; noneNavigation = new Navigation(); noneNavigation.mode = Navigation.Mode.None; }
public Navigation Create(Navigation nv) { nv.CreatedDate = DateTime.Now; nv.UpdatedDate = DateTime.Now; nv.DisplayOrder = 1; if(nv.ParentId.HasValue && nv.ParentId.Value ==0) nv.ParentId = new Nullable<int>(); nv.Status = EntityStatuses.Actived.ToString(); if (nv.Component == SiteModules.Article.ToString()) { if (!nv.CategoryId.HasValue || nv.CategoryId.Value == 0) { ContentCategory cat = new ContentCategory() { CategoryName = nv.Name, CreatedDate = DateTime.Now, IsFeatured = false, Key = nv.Name.ToUrlKey(), ParentCategoryId = new Nullable<int>(), Status = EntityStatuses.Actived.ToString(), UpdatedDate = DateTime.Now }; Navigation parent = GetItem(nv.ParentId.HasValue? nv.ParentId.Value: 0); if (parent != null && parent.Component == SiteModules.Article.ToString()) { cat.ParentCategoryId = parent.CategoryId; } nv.Controller = DBNL.App.Models.Statics.Controllers.Article.ToString(); nv.Action = DBNL.App.Models.Statics.Actions.Category.ToString(); nv.Area = ""; Categories.InsertOnSubmit(cat); Commit(); nv.CategoryId = cat.ID; } } Navigations.InsertOnSubmit(nv); Commit(); Reorder(nv.Id, ReorderMethods.Down.ToString()); return nv; }
public EditNavigationViewModel(int id) { // Grab Every Page and Id so we can list it in the dropdown PageIdNameCollection = Context.ContentPages.Where(x => x.IsActive.Value && x.SchemaId != 1).Select(x => new { x.ContentPageId, x.Title }).OrderBy(x => x.Title).ToDictionary(o => o.ContentPageId, o => o.Title); //PromoModules = context.ContentModules.Where(m => m.SchemaId == 3).ToList(); TheNav = Context.Navigations.Single(x => x.NavigationId == id); BookmarkTitle = TheNav.Name; // Grab the top level items first, then populate their children if (TheNav != null) { TopLevelNavItems = Context.NavigationItems.Where(x => x.ParentNavigationId == TheNav.NavigationId && x.ParentNavigationItemId < 0).OrderBy(x => x.Order).ToList(); if (TopLevelNavItems.Count > 0) { TopLevelNavItems = PopulateNavList(TopLevelNavItems); } } }
///<summary>Asynchronously navigates a robot.</summary> public static void Navigate(this IRobot robot, Navigation.INavigator navigator) { if (robot == null) throw new ArgumentNullException("robot"); if (navigator == null) throw new ArgumentNullException("navigator"); var iterator = navigator.Execute(robot); Action stepRunner = null; stepRunner = delegate { try { if (!iterator.MoveNext()) iterator.Dispose(); else iterator.Current.Execute(robot, stepRunner); //StepRunner is captured by reference, so it will use the Contextified version } catch { iterator.Dispose(); throw; } }; stepRunner = Contextify(stepRunner); //The parameter is captured by value, so this won't create a recursive loop. stepRunner(); }
/// <summary> /// Chama a tela "Sobre" /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> void OnButtonSobreClicked(object sender, EventArgs e) { Navigation.PushAsync(new Sobre()); }
async void OnCancel(object sender, EventArgs e) { await Navigation.PopAsync(); }
async void Cancel_Clicked(object sender, EventArgs e) { await Navigation.PopModalAsync(); }
/// <summary> /// Открытие финансов. /// </summary> async void FinanceWidget_Tapped(System.Object sender, System.EventArgs e) { await AnimationManager.StartScalePancakeView(sender); await Navigation.PushAsync(new FinancePage()); }
private async void Cancel_Clicked(object sender, EventArgs e) { await Navigation.PushModalAsync(new MainPage()); }
/// <summary> /// Evento de chamado sempre que um item do ListView é Selecionado /// </summary> /// <param name="sender">Sender.</param> /// <param name="e">E.</param> async void OnItemSelectedItem(object sender, SelectedItemChangedEventArgs e) { var item = e.SelectedItem as Mes; await Navigation.PushAsync(new Movimentacoes(item)); }
async void OnClickForgotPassword(object sender, EventArgs e) { await Navigation.PushAsync(new ForgotPassword()); }
async void OnNextPageButtonClicked(object sender, EventArgs e) { await Navigation.PushAsync(new Page2()); }
async void HandleNativeVideoPlayerButtonClicked(object sender, EventArgs e) => await Navigation.PushAsync(new NativeVideoPlayerPage());
async void AjouterLieu(object sender, EventArgs e) { await Navigation.PushAsync(new AddItemPage()); //await Navigation.PushModalAsync(new AddItemPage()); }
async void Save_Clicked(object sender, EventArgs e) { MessagingCenter.Send(this, "AddItem", Item); await Navigation.PopModalAsync(); }
public FlowDirectionGalleryNP(FlowDirection direction) { FlowDirection = direction; Navigation.PushAsync(new FlowDirectionGalleryCP(direction)); Navigation.PushAsync(new FlowDirectionGalleryCP(direction)); }
void Button_Clicked(System.Object sender, System.EventArgs e) { Navigation.PushModalAsync(new BluetoothConnection()); }
public async void Show() { // Open a PopupPage await Navigation.PushPopupAsync(this); }
private void Button_Clicked(object sender, EventArgs e) { App.Instance.Connection.InsertOrReplace(_contato); Navigation.PopAsync(); }
private void btnCancel_Clicked(object sender, EventArgs e) { Navigation.PopAsync(); }
async void AddItem_Clicked(object sender, EventArgs e) { await Navigation.PushModalAsync(new NavigationPage(new NewItemPage())); }
public async void EditProduct() { Value = true; var connection = await apiService.CheckConnection(); if (!connection.IsSuccess) { await Application.Current.MainPage.DisplayAlert( Languages.Warning, Languages.CheckConnection, Languages.Ok); return; } if (string.IsNullOrEmpty(Product.code) || string.IsNullOrEmpty(Product.description)) { Value = true; return; } if (Product.supplier == null || Product.customsDuty == null || Product.measureUnit == null) { Value = true; return; } if(SelectedStatus == null) { await Application.Current.MainPage.DisplayAlert("Warning", "Select Availability", "ok"); return; } var purchaseCost = new PurchaseCost { id = Product.purchaseCost.id, currency = Product.purchaseCost.currency, value = Product.purchaseCost.value }; var currencyStatic = new Currency { id = 2, entity = "ÅLAND ISLANDS", currency = "Euro", alphabeticCode = "EUR", numericCode = "978", minorUnit = "2", withdrawalDate = null, remark = null }; var packagingCost = new PackagingCost { id = Product.packagingCost.id, currency = currencyStatic, value = Product.packagingCost.value }; var product = new Product { id = Product.id, code = Product.code, availability = SelectedStatus.Key, description = Product.description, purchaseCost = purchaseCost, packagingCost = packagingCost, updateCostDate = Product.updateCostDate, costChange = Product.costChange, quantityPerPackage = 1, active = Product.active, fob = Product.fob, supplier = Product.supplier, packagingMethod = Product.packagingMethod, measureUnit = Product.measureUnit, composed = Product.composed, component = Product.component, importVolume = Product.importVolume, importQuantity = Product.importQuantity, customsDuty = Product.customsDuty, note = Product.note, width = Product.width, height = Product.height, length = Product.length, cartonVolume = 1, useCarton = Product.useCarton }; var eubasiccost = new PackagingCost { currency = currencyStatic, value = Product.purchaseCost.value }; var euddpcost = new PackagingCost { currency = currencyStatic, value = Product.purchaseCost.value }; var productJson = new ProductJson { // prices = [], product = product, username = "******", eubasicpcost = eubasiccost, euddpcost = euddpcost, //piecesPerContainer = 30 }; var response = await apiService.PutProduct<Product>( "https://app.smart-path.it", "/md-core", "/medial/product", productJson); /* if (!response.IsSuccess) { await Application.Current.MainPage.DisplayAlert("Error", response.Message, "ok"); return; }*/ Value = false; //ProductsViewModel.GetInstance().Update(productJson); MessagingCenter.Send((App)Application.Current, "OnSaved"); DependencyService.Get<INotification>().CreateNotification("Medial", "Product Updated"); await Navigation.PopAsync(); }
async void OnClickCreateAccount(object sender, EventArgs e) { await Navigation.PushAsync(new CreateAccount()); }
protected override bool OnBackgroundClicked() { Navigation.PopAllPopupAsync(); return(base.OnBackgroundClicked()); }
async void Handle_Clicked(object sender, System.EventArgs e) { await Navigation.PushAsync(new ChangeLanguagePage()); }
void Handle_Clicked(object sender, System.EventArgs e) { Navigation.PopModalAsync(); }
private void goback3(object sender, EventArgs e) { Navigation.PopUntilLastPageType(typeof(Page1)); }
void OnDrawnButtonClicked(object sender, EventArgs e) { Navigation.PushAsync(new DrawnBenchmarkPage()); }
async private void Button_Clicked(object sender, EventArgs e) { if (btContinuar.Text == "Continuar") { var result = await ApiAgendaHttpClient.Current.EmailUnico(etEmail.Text); if (etEmail.Text == null || etEmail.Text == "" || etName.Text == null || etName.Text == "" || etSobrenome.Text == null || etSobrenome.Text == "" || etSenha.Text == null || etSenha.Text == "" || etConfirmaSenha.Text == null || etConfirmaSenha.Text == "" || !result) { if (etEmail.Text == null || etEmail.Text == "") { lErroEmail.IsVisible = true; } else { if (!result) { lErroEmail.Text = "Email incorreta ou já cadastrado."; lErroEmail.IsVisible = true; etEmail.Focus(); DependencyService.Get <IMessage>().LongAlert("Email incorreta ou já cadastrado."); } } if (etName.Text == null || etName.Text == "") { lErroNome.IsVisible = true; } if (etSobrenome.Text == null || etSobrenome.Text == "") { lErroSobrenome.IsVisible = true; } if (etSenha.Text == null || etSenha.Text == "") { lErroSenha.IsVisible = true; } if (etConfirmaSenha.Text == null || etConfirmaSenha.Text == "") { lErroConfirmaSenha.IsVisible = true; } if (etSenha.Text != etConfirmaSenha.Text) { etConfirmaSenha.Text = ""; etConfirmaSenha.Focus(); DependencyService.Get <IMessage>().LongAlert("Senha incorreta."); } } else { Pessoa.nome = etName.Text.Trim(); Pessoa.sobrenome = etSobrenome.Text.Trim(); //Pessoa.nascimento = etNascimento.Date.ToString("yyyy-MM-dd"); Pessoa.nascimento = etNascimento.Date; Pessoa.telefone = etTelefone.Text.Trim().Replace("(", "").Replace(")", "").Replace(" ", "").Replace("-", ""); Pessoa.email = etEmail.Text.Trim(); Pessoa.senha = etSenha.Text; if (swTipo.IsToggled) { Pessoa.tipo = "P"; } else { Pessoa.tipo = "C"; } await Navigation.PushAsync(new SignUpAddressPage(Pessoa)); } } else { if (etEmail.Text == null || etEmail.Text == "" || etName.Text == null || etName.Text == "" || etSobrenome.Text == null || etSobrenome.Text == "") { if (etEmail.Text == null || etEmail.Text == "") { lErroEmail.IsVisible = true; } if (etName.Text == null || etName.Text == "") { lErroNome.IsVisible = true; } if (etSobrenome.Text == null || etSobrenome.Text == "") { lErroSobrenome.IsVisible = true; } } else { Pessoa.nome = etName.Text.Trim(); Pessoa.sobrenome = etSobrenome.Text.Trim(); Pessoa.nascimento = etNascimento.Date; Pessoa.telefone = etTelefone.Text.Trim().Replace("(", "").Replace(")", "").Replace(" ", "").Replace("-", ""); Pessoa.email = etEmail.Text.Trim(); if (swTipo.IsToggled) { Pessoa.tipo = "P"; } else { Pessoa.tipo = "C"; } await AlterarDadosPessoa(); } } }
private async void LogInButton_Clicked(object sender, EventArgs e) { await Navigation.PushAsync(new SignInUsingPhoneOrEmailPage()); }
private async void OnButtonClicked(object sender, EventArgs e) { await Navigation.PushAsync(new MainPage()); }
public Patrol() { Navigator = new Navigation(Engine.Waypoints); Navigator.SetDestinationToNearest(); }
private async Task <bool> GetLoginSettings(string url) { try { url = url.ToLower(); var settings = await AuthenticationService.LoginSettings(url); if (settings != null) { //Common.Instance.DeleteAll<Workspace>(); SQLiteConnection connection = Common.Instance.InitializeDatabase(); var workspaces = Common.Instance.GetWorkspaces(); foreach (Workspace ws in workspaces.Where(x => x.isActive)) { ws.isActive = false; Common.Instance._sqlconnection.Update(ws); } if (!workspaces.Any(x => x.WorkspaceURL.ToLower() == url.ToLower())) { Common.Instance.CreateTable <Workspace>(); Workspace workspace = new Workspace() { EmailPasswordEnabled = settings.SSOEnabled, SSOEnabled = settings.SSOEnabled, Name = settings.CustomerName, WorkspaceURL = url, isActive = true, DomainID = settings.DomainId }; try { Common.Instance._sqlconnection.Insert(workspace); } catch { Common.Instance._sqlconnection.DropTable <Workspace>(); Common.Instance.ShowToastMessage("Table schema has been updated. Please try again!", DoubleResources.DangerSnackBar); Common.CurrentWorkspace = null; return(true); } Common.CurrentWorkspace = workspace; await Navigation.PushAsync(new SignInUsingPhoneOrEmailPage()); } else { Workspace ws = workspaces.FirstOrDefault(x => x.WorkspaceURL.ToLower() == url.ToLower()); ws.isActive = true; Common.Instance._sqlconnection.Update(ws); Common.CurrentWorkspace = ws; await Navigation.PushAsync(new SignInUsingPhoneOrEmailPage()); } } else { Common.CurrentWorkspace = null; Common.Instance.ShowToastMessage("Workspace doesn't exist!", DoubleResources.DangerSnackBar); } } catch (Exception ex) { Common.CurrentWorkspace = null; Common.Instance.ShowToastMessage("Workspace doesn't exist!", DoubleResources.DangerSnackBar); //await Navigation.PushAsync(new SignInWorkSpace()); } return(true); }
private void AliquotAndStainOrderPath_Return(object sender, Navigation.PageNavigationReturnEventArgs e) { this.m_LoginPageWindow.Close(); }
private async void Cancel_Button(object sender, System.EventArgs e) { await Navigation.PopModalAsync(); }
/// <summary> /// Navigates forward or back in the page history /// </summary> public void Navigate(Navigation n) { UWKPlugin.UWK_MsgNavigate(ID, (int) n); }
async void HandleWebViewPageButtonClicked(object sender, EventArgs e) => await Navigation.PushAsync(new VideoWebViewPage());