コード例 #1
0
    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);
        }
    }
コード例 #2
0
 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
     }
 }
コード例 #3
0
    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);
        }
    }