public void ShowMenu(Base.ActionPoint actionPoint, string preselectedOrientation) { ShowMenu(actionPoint); try { OpenDetailMenu(actionPoint.GetOrientation(preselectedOrientation)); } catch (KeyNotFoundException ex) { Notifications.Instance.ShowNotification("Unable to open detail menu", ex.Message); } }
private void OnActionPointOrientationBaseUpdated(object sender, ActionPointOrientationEventArgs args) { try { CurrentActionPoint.GetOrientation(args.Data.Id); ActionButton btn = GetButton(args.Data.Id, OrientationsDynamicList); btn.SetLabel(args.Data.Name); } catch (KeyNotFoundException) { // not currently opened action point } }
public async Task <bool> Show(Base.ActionPoint actionPoint, string preselectedOrientation) { if (!await Show(actionPoint, true)) { return(false); } try { OpenDetailMenu(actionPoint.GetOrientation(preselectedOrientation)); return(true); } catch (KeyNotFoundException ex) { Notifications.Instance.ShowNotification("Unable to open detail menu", ex.Message); return(false); } }