コード例 #1
0
        void HandleEventHandler(object sender, EventArgs e)
        {
            if (lblCover.Hidden == true)
            {
                lblCover.Hidden   = false;
                lblProfile.Hidden = false;
                profileTapGesture = new UITapGestureRecognizer(ShowOptions)
                {
                    Enabled = true
                };
                profileView.AddGestureRecognizer(profileTapGesture);

                coverTapGesture = new UITapGestureRecognizer(ShowOptions)
                {
                    Enabled = true
                };
                CoverView.AddGestureRecognizer(coverTapGesture);
            }
            else
            {
                lblCover.Hidden   = true;
                lblProfile.Hidden = true;
                profileTapGesture = new UITapGestureRecognizer(ShowOptions)
                {
                    Enabled = false
                };
                profileView.AddGestureRecognizer(profileTapGesture);

                coverTapGesture = new UITapGestureRecognizer(ShowOptions)
                {
                    Enabled = false
                };
                CoverView.AddGestureRecognizer(coverTapGesture);
            }
        }
コード例 #2
0
 public virtual void HideData()
 {
     if (CoverView != null)
     {
         CoverView.RemoveFromSuperview();
     }
 }
コード例 #3
0
ファイル: MapCell.cs プロジェクト: showmap/smartwalk
 private void DisposeGestures()
 {
     if (_mapTapGesture != null)
     {
         CoverView.RemoveGestureRecognizer(_mapTapGesture);
         _mapTapGesture.Dispose();
         _mapTapGesture = null;
     }
 }
コード例 #4
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (CoverView != null)
         {
             CoverView.Dispose();
             CoverView = null;
         }
     }
     base.Dispose(disposing);
 }
コード例 #5
0
 void InitializeComponents()
 {
     lblEdit.Hidden    = LblCover.Hidden = true;
     profileTapGesture = new UITapGestureRecognizer(Opciones)
     {
         Enabled = true
     };
     ProfileView.AddGestureRecognizer(profileTapGesture);
     coverTapGesture = new UITapGestureRecognizer(Opciones)
     {
         Enabled = true
     };
     CoverView.AddGestureRecognizer(coverTapGesture);
 }
コード例 #6
0
        void ActivarFuncionalidad(bool activado)
        {
            profileTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = activado
            };
            profileView.AddGestureRecognizer(profileTapGesture);

            coverTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = activado
            };
            CoverView.AddGestureRecognizer(coverTapGesture);
        }
コード例 #7
0
        void InitializeComponents()
        {
            lblProfile.Hidden = lblCover.Hidden = true;

            profileTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = false
            };
            profileView.AddGestureRecognizer(profileTapGesture);

            coverTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = false
            };
            CoverView.AddGestureRecognizer(coverTapGesture);
        }
コード例 #8
0
        // override Finis

        #region Internal Functionality
        void InitializeComponents()
        {
            //Hidding components for edit
            lblEdit.Hidden = LblCover.Hidden = true;

            profileTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = true
            };
            ProfileView.AddGestureRecognizer(profileTapGesture);
            coverTapGesture = new UITapGestureRecognizer(ShowOptions)
            {
                Enabled = true
            };
            CoverView.AddGestureRecognizer(coverTapGesture);
        }
コード例 #9
0
ファイル: MapCell.cs プロジェクト: showmap/smartwalk
        private void InitializeGestures()
        {
            _mapTapGesture = new UITapGestureRecognizer(() => {
                if (NavigateAddressesCommand != null &&
                    NavigateAddressesCommand.CanExecute(DataContext))
                {
                    NavigateAddressesCommand.Execute(DataContext);
                }
            })
            {
                NumberOfTouchesRequired = (uint)1,
                NumberOfTapsRequired    = (uint)1
            };

            CoverView.AddGestureRecognizer(_mapTapGesture);
        }
コード例 #10
0
        void ReleaseDesignerOutlets()
        {
            if (ProfileView != null)
            {
                ProfileView.Dispose();
                ProfileView = null;
            }

            if (btnEdit != null)
            {
                btnEdit.Dispose();
                btnEdit = null;
            }

            if (ImgProfile != null)
            {
                ImgProfile.Dispose();
                ImgProfile = null;
            }

            if (lblEdit != null)
            {
                lblEdit.Dispose();
                lblEdit = null;
            }

            if (CoverView != null)
            {
                CoverView.Dispose();
                CoverView = null;
            }

            if (ImgCover != null)
            {
                ImgCover.Dispose();
                ImgCover = null;
            }

            if (lblCover != null)
            {
                lblCover.Dispose();
                lblCover = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (btnEdit != null)
            {
                btnEdit.Dispose();
                btnEdit = null;
            }

            if (CoverView != null)
            {
                CoverView.Dispose();
                CoverView = null;
            }

            if (imgCover != null)
            {
                imgCover.Dispose();
                imgCover = null;
            }

            if (imgProfile != null)
            {
                imgProfile.Dispose();
                imgProfile = null;
            }

            if (lblCover != null)
            {
                lblCover.Dispose();
                lblCover = null;
            }

            if (lblProfile != null)
            {
                lblProfile.Dispose();
                lblProfile = null;
            }

            if (profileView != null)
            {
                profileView.Dispose();
                profileView = null;
            }
        }
コード例 #12
0
        void ReleaseDesignerOutlets()
        {
            if (ContentView != null)
            {
                ContentView.Dispose();
                ContentView = null;
            }

            if (AddressContainer != null)
            {
                AddressContainer.Dispose();
                AddressContainer = null;
            }

            if (AddressHeightConstraint != null)
            {
                AddressHeightConstraint.Dispose();
                AddressHeightConstraint = null;
            }

            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

            if (CoverView != null)
            {
                CoverView.Dispose();
                CoverView = null;
            }

            if (MapView != null)
            {
                MapView.Dispose();
                MapView = null;
            }
        }