Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (AddButton != null)
            {
                AddButton.Dispose();
                AddButton = null;
            }

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

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

            if (ValueTextField != null)
            {
                ValueTextField.Dispose();
                ValueTextField = null;
            }
        }
Exemple #2
0
        void ReleaseDesignerOutlets()
        {
            if (AttachPhotoButton != null)
            {
                AttachPhotoButton.Dispose();
                AttachPhotoButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (ProfileButton != null)
            {
                ProfileButton.Dispose();
                ProfileButton = null;
            }
        }
Exemple #4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TitleTextField.SetBinding(v => v.Text, ViewModel.Title,
                                      v => Observable.FromEventPattern(v, nameof(v.EditingChanged)).ToUnit());
            DescriptionTextField.SetBinding(v => v.Text, ViewModel.Description,
                                            v => Observable.FromEventPattern(v, nameof(v.EditingChanged)).ToUnit());

            Observable.FromEventPattern(SaveButton, nameof(SaveButton.TouchUpInside))
            .SetCommand(ViewModel.CommitChange);
        }
        internal void AddDescription()
        {
            GlobalDefinitions.ExcelLib.PopulateInCollection(MarsResource.ExcelPath, "Profile");

            //TODO
            //GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("(//i[contains(@class,'outline write icon')])[1]"), 2000);
            Thread.Sleep(2000);
            DescriptionEditButton.Click();
            GlobalDefinitions.WaitForElement(GlobalDefinitions.driver, By.XPath("//textarea[contains(@maxlength,'600')]"), 20);
            DescriptionTextField.Clear();
            DescriptionTextField.SendKeys(GlobalDefinitions.ExcelLib.ReadData(2, "Description"));
            DescriptionSaveButton.Click();
        }
        private void prepareTextFields()
        {
            TimeLabel.Font = TimeLabel.Font.GetMonospacedDigitFont();

            var stringAttributes = new CTStringAttributes(
                new UIStringAttributes {
                ForegroundColor = Color.StartTimeEntry.Placeholder.ToNativeColor()
            }.Dictionary
                );

            DescriptionTextField.TintColor             = Color.StartTimeEntry.Cursor.ToNativeColor();
            DescriptionTextField.AttributedPlaceholder =
                new NSAttributedString(Resources.StartTimeEntryPlaceholder, stringAttributes);

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

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

            if (TitleTextField != null)
            {
                TitleTextField.Dispose();
                TitleTextField = null;
            }
        }
        private void prepareDescriptionField()
        {
            var placeholderAttributes = new UIStringAttributes
            {
                //This should be the same as Color.pinkishGrey (206, 206, 206),
                //but iOS makes the color a bit darker, when applied to
                //UITextField.AttributedPlaceholder, so this is made a bit
                //lighter than the actual color.
                ForegroundColor = UIColor.FromRGB(215, 215, 215)
            };

            DescriptionTextField.AttributedPlaceholder = new NSAttributedString(Resources.AddDescription, placeholderAttributes);
            DescriptionTextField.TintColor             = Color.StartTimeEntry.Cursor.ToNativeColor();

            DescriptionTextField.ShouldReturn += (textField) =>
            {
                DescriptionTextField.ResignFirstResponder();
                return(true);
            };
        }
        void ReleaseDesignerOutlets()
        {
            if (CityTextField != null)
            {
                CityTextField.Dispose();
                CityTextField = null;
            }

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

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

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

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

            if (SaveButton != null)
            {
                SaveButton.Dispose();
                SaveButton = null;
            }
        }
Exemple #10
0
        private void prepareViews()
        {
            //This is needed for the ImageView.TintColor bindings to work
            BillableButton.SetImage(
                BillableButton.ImageForState(UIControlState.Normal)
                .ImageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate),
                UIControlState.Normal
                );

            TimeLabel.Font = TimeLabel.Font.GetMonospacedDigitFont();

            var stringAttributes = new CTStringAttributes(
                new UIStringAttributes {
                ForegroundColor = Color.StartTimeEntry.Placeholder.ToNativeColor()
            }.Dictionary
                );

            DescriptionTextField.TintColor             = Color.StartTimeEntry.Cursor.ToNativeColor();
            DescriptionTextField.AttributedPlaceholder =
                new NSAttributedString(Resources.StartTimeEntryPlaceholder, stringAttributes);

            DescriptionTextField.BecomeFirstResponder();
        }
        void ReleaseDesignerOutlets()
        {
            if (ContentView != null)
            {
                ContentView.Dispose();
                ContentView = null;
            }

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

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

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

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

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

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

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

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

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

            if (DescriptionLabelTopConstraint != null)
            {
                DescriptionLabelTopConstraint.Dispose();
                DescriptionLabelTopConstraint = null;
            }
        }
Exemple #12
0
        void ReleaseDesignerOutlets()
        {
            if (BillableButton != null)
            {
                BillableButton.Dispose();
                BillableButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (TagsLabel != null)
            {
                TagsLabel.Dispose();
                TagsLabel = null;
            }
        }
 public void FillDescriptionTextField(string text)
 {
     DescriptionTextField.Clear();
     DescriptionTextField.SendKeys(text);
 }