Ejemplo n.º 1
0
        /// ------------------------------------------------------------------------------------------------
        /// Name		OnOfficerTapped
        ///
        /// <summary>	Executed when the Edit function is tapped.
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// ------------------------------------------------------------------------------------------------
        private async void OnOfficerTapped(object sender, EventArgs e)
        {
            try
            {
                if (_groupedOffice != null && _groupedOffice.listData.Count != 0)
                {
                    int height = _groupedOffice.listData.Count * 90;

                    if (height > 400)
                    {
                        height = 400;
                    }
                    RelativePopup.ShowPopupRelative(_groupedOffice, BX_Officer, 400, height, true, "");
                    RelativePopup._triangleImage.Source = "";
                }
                else if (string.IsNullOrEmpty(AppData.PropertyModel.SelectedVisit.GroupMod))
                {
                    return;
                }
                else
                {
                    await LockScreen.ToDisplayAlert(this, "No Officer", "No officer types set up in Uniform for this visit type. Please contact your Uniform administrator for assistance.", "OK");
                }
            }
            catch (Exception ex)
            {
                LogTracking.LogTrace(ex.ToString());
            }
        }
 /// ------------------------------------------------------------------------------------------------
 /// Name		OnOfficerTapped
 ///
 /// <summary>	Executed when the Edit function is tapped.
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// ------------------------------------------------------------------------------------------------
 private async void OnOfficerTapped(object sender, EventArgs e)
 {
     if (_groupedOffice != null)
     {
         RelativePopup.ShowPopupRelative(_groupedOffice, Lbl_Officer, 400, 600, true, "");
         RelativePopup._triangleImage.Source = "";
     }
     else
     {
         await DisplayAlert("No Officer", "No officer types set up in Uniform for this visit type. Please contact your Uniform administrator for assistance.", "Ok");
     }
 }