コード例 #1
0
        public void JobAlertCreated()
        {
            isSelected = false;
            btnChckBox.SetImage(UIImage.FromFile("uncheck.png"), UIControlState.Normal);

            _jobAlerts = new List <JobAlert>();

            JobAlert aJobAlert = new JobAlert {
                heading = "Name Job Alert", placeHolder = "B.v.technische functies", inputValue = ""
            };
            JobAlert bJobAlert = new JobAlert {
                heading = "Frequency", placeHolder = "Daily", inputValue = "Daily"
            };
            JobAlert cJobAlert = new JobAlert {
                heading = "First Name", placeHolder = "Enter your first name here.", inputValue = ""
            };
            JobAlert dJobAlert = new JobAlert {
                heading = "Surname", placeHolder = "Enter your surname here.", inputValue = ""
            };
            JobAlert eJobAlert = new JobAlert {
                heading = "Email", placeHolder = "Enter your email here.", inputValue = ""
            };

            _jobAlerts.Add(aJobAlert);
            _jobAlerts.Add(bJobAlert);
            _jobAlerts.Add(cJobAlert);
            _jobAlerts.Add(dJobAlert);
            _jobAlerts.Add(eJobAlert);

            tblView.Source = new TableSource(_jobAlerts, this);
            tblView.ReloadData();
        }
コード例 #2
0
        public void UpdateCell(JobAlert aJob)
        {
            this.txtField.Placeholder = aJob.placeHolder;
            this.txtField.Text        = aJob.inputValue;
            this.titleLabel.Text      = aJob.heading;

            this.aTxtField = this.txtField;
        }
コード例 #3
0
        public void selectedFrequency(string aFrequency)
        {
            JobAlert aJobAlert = _jobAlertVC._jobAlerts[1];

            aJobAlert.inputValue = aFrequency;

            UITableView tblView = (UITableView)_jobAlertVC.View.ViewWithTag(101);

            tblView.ReloadData();
        }
コード例 #4
0
        void HandleTextMessageChanged(object sender, EventArgs e)
        {
            UITextField txtField  = (UITextField)sender;
            int         index     = (int)txtField.Tag - 1000;
            JobAlert    aJobAlert = _jobAlertVC._jobAlerts[index];

            aJobAlert.inputValue = txtField.Text;

            //UITableView tblView = (UITableView)_jobAlertVC.View.ViewWithTag(101);
            //tblView.ReloadData();
        }
コード例 #5
0
        void TextFieldDidEndEditing(object sender, EventArgs e)
        //public override void TextFieldDidEndEditing(UITextField textfield)
        {
            UITextField txtField  = (UITextField)sender;
            int         index     = (int)txtField.Tag - 1000;
            JobAlert    aJobAlert = _jobAlertVC._jobAlerts[index];

            aJobAlert.inputValue = txtField.Text;

            UITableView tblView = (UITableView)_jobAlertVC.View.ViewWithTag(101);

            tblView.ReloadData();
        }
コード例 #6
0
        public override UITableViewCell GetCell(UITableView tableView, NSIndexPath indexPath)
        {
            var cell = (CustomCellJobLAert)tableView.DequeueReusableCell(CustomCellJobListing.Key);

            //if (cell != null)
            //	cell = null;

            if (cell == null)
            {
                cell = CustomCellJobLAert.Create();
            }

            if (indexPath.Row == 1)
            {
                //arrow-down-icon.png
                UIImage     arrow     = UIImage.FromBundle("arrow-down");
                UIImageView imageView = new UIImageView(new System.Drawing.Rectangle(330, 45, 21, 21));                 //244 × 60
                imageView.Image = arrow;
                cell.ContentView.AddSubview(imageView);
            }

            JobAlert aJob = jobAlerts[indexPath.Row];

            cell.UpdateCell(aJob);
            cell.aTxtField.Tag = 1000 + indexPath.Row;
            //cell.aTxtField.Delegate = this;

            cell.aTxtField.ShouldReturn       += TextFieldShouldReturn;
            cell.aTxtField.ShouldClear        += TextFieldShoulClear;
            cell.aTxtField.ShouldBeginEditing += ShouldBeginEditing;
            cell.aTxtField.EditingDidEnd      += TextFieldDidEndEditing;
            cell.aTxtField.EditingChanged     += HandleTextMessageChanged;

            cell.SelectionStyle = UITableViewCellSelectionStyle.None;


            return(cell);
        }
コード例 #7
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            //UIImage logo = UIImage.FromBundle("adecco-logo-white");
            //UIImageView imageView = new UIImageView(new System.Drawing.Rectangle(0, 0, 80, 20)); //244 × 60
            //imageView.Image = logo;
            //NavigationItem.TitleView = imageView;

            //confirmButton.BackgroundColor = UIColor.Clear.FromHexString("#B93224", 1.0f);

            this.NavigationItem.SetRightBarButtonItem(
                new UIBarButtonItem("Confirm"
                                    , UIBarButtonItemStyle.Done
                                    , (sender, args) =>
            {
                //Confirm button was clicked
                this.ConfirmButton_TouchUpInside();
            })
                , true);


            btnChckBox.SetImage(UIImage.FromFile("uncheck.png"), UIControlState.Normal);


            this.NavigationController.NavigationBar.TitleTextAttributes = new UIStringAttributes()
            {
                ForegroundColor = UIColor.White
            };

            this.Title = "Job Alert";

            /*
             * tblView.Layer.BorderColor = UIColor.LightGray.CGColor;
             * tblView.Layer.BorderWidth = 1.5f;
             * tblView.Layer.CornerRadius = 5f;
             * tblView.Layer.MasksToBounds = true;
             *
             * tblView.Layer.ShadowColor = UIColor.DarkGray.CGColor;
             * tblView.Layer.ShadowOpacity = 0.4f;
             * tblView.Layer.ShadowRadius = 2.0f;
             * tblView.Layer.ShadowOffset = new SizeF(0, 0); //(2.0f, 2.0f);
             * tblView.Layer.MasksToBounds = false;
             */

            tblView.Tag           = 101;
            tblView.ClipsToBounds = true;


            //#EEEEEE   light Grey color
            titleLabel.BackgroundColor = UIColor.Clear.FromHexString("##EEEEEE", 1.0f);


            //#EEEEEE   light Grey color
            View.BackgroundColor = UIColor.Clear.FromHexString("##EEEEEE", 1.0f);

            //#FFFFFF  white color
            tblView.BackgroundColor = UIColor.Clear.FromHexString("##FFFFFF", 1.0f);



            //tblView.Layer.BorderColor = UIColor.LightGray.CGColor;
            //tblView.Layer.BorderWidth = 0.5f;
            //tblView.Layer.CornerRadius = 2.0f;
            //tblView.Layer.MasksToBounds = true;



            _jobAlerts = new List <JobAlert>();

            JobAlert aJobAlert = new JobAlert {
                heading = "Name Job Alert", placeHolder = "B.v.technische functies", inputValue = ""
            };
            JobAlert bJobAlert = new JobAlert {
                heading = "Frequency", placeHolder = "Daily", inputValue = "Daily"
            };
            JobAlert cJobAlert = new JobAlert {
                heading = "First Name", placeHolder = "Enter your first name here.", inputValue = ""
            };
            JobAlert dJobAlert = new JobAlert {
                heading = "Surname", placeHolder = "Enter your surname here.", inputValue = ""
            };
            JobAlert eJobAlert = new JobAlert {
                heading = "Email", placeHolder = "Enter your email here.", inputValue = ""
            };

            _jobAlerts.Add(aJobAlert);
            _jobAlerts.Add(bJobAlert);
            _jobAlerts.Add(cJobAlert);
            _jobAlerts.Add(dJobAlert);
            _jobAlerts.Add(eJobAlert);

            tblView.Source = new TableSource(_jobAlerts, this);
            tblView.ReloadData();
            //tblView.TableFooterView = new UIView();
            //tblView.TableHeaderView = new UIView();

            tblView.ScrollEnabled = true;

            // Setup keyboard event handlers
            RegisterForKeyboardNotifications();

            this.appliedFilterList();

            Gai.SharedInstance.DefaultTracker.Set(GaiConstants.ScreenName, "Job Alert");
            Gai.SharedInstance.DefaultTracker.Send(DictionaryBuilder.CreateScreenView().Build());
        }
コード例 #8
0
 public void UpdateCell(JobAlert aJob)
 {
     //this.txtField.Placeholder = aJob.placeHolder;
     //this.txtField.Text = aJob.inputValue;
     //this.headingLabel.Text = aJob.heading;
 }