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

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

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

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

            if (TitleText != null)
            {
                TitleText.Dispose();
                TitleText = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (CancelButton != null)
     {
         CancelButton.Dispose();
         CancelButton = null;
     }
     if (DoneSwitch != null)
     {
         DoneSwitch.Dispose();
         DoneSwitch = null;
     }
     if (ForText != null)
     {
         ForText.Dispose();
         ForText = null;
     }
     if (NameText != null)
     {
         NameText.Dispose();
         NameText = null;
     }
     if (NotesText != null)
     {
         NotesText.Dispose();
         NotesText = null;
     }
     if (SaveButton != null)
     {
         SaveButton.Dispose();
         SaveButton = null;
     }
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // ios7 layout
            if (RespondsToSelector(new Selector("edgesForExtendedLayout")))
            {
                EdgesForExtendedLayout = UIRectEdge.None;
            }

            // Perform any additional setup after loading the view, typically from a nib.
            var set = this.CreateBindingSet <AddView, AddViewModel>();

            set.Bind(CaptionText).To(vm => vm.Caption);
            set.Bind(NotesText).To(vm => vm.Notes);
            set.Bind(AddPictureButton).To(vm => vm.AddPictureCommand);
            set.Bind(SaveButton).To(vm => vm.SaveCommand);
            set.Bind(LocationSwitch).To(vm => vm.LocationKnown);
            set.Bind(MainImageView).To(vm => vm.PictureBytes).WithConversion("InMemoryImage");
            set.Apply();

            var g = new UITapGestureRecognizer(() =>
            {
                CaptionText.ResignFirstResponder();
                NotesText.ResignFirstResponder();
            });

            View.AddGestureRecognizer(g);
        }
Beispiel #4
0
        void ReleaseDesignerOutlets()
        {
            if (CaptionText != null)
            {
                CaptionText.Dispose();
                CaptionText = null;
            }

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

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

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

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

            if (MainImageView != null)
            {
                MainImageView.Dispose();
                MainImageView = null;
            }
        }
Beispiel #5
0
        void ReleaseDesignerOutlets()
        {
            if (systemx != null)
            {
                systemx.Dispose();
                systemx = null;
            }

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

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

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

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

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

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

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

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

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

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