Esempio n. 1
0
        public override void AwakeFromNib()
        {
            //var customView = Window.ContentView;
            //customView.WantsLayer = true;
            //customView.Layer.CornerRadius = 5.0f;

            TopImageView.Image         = Utility.ImageWithFilePath("/Images/Login/login_bk_red.png");
            BottonImageView.Image      = Utility.ImageWithFilePath("/Images/Login/login_bk_gray.png");
            LogoImageView.Image        = Utility.ImageWithFilePath("/Images/Login/LexisNexis-Logo.png");
            CloseButton.Image          = Utility.ImageWithFilePath("/Images/Login/loginico_close.png");
            CloseButton.AlternateImage = Utility.ImageWithFilePath("/Images/Login/loginico_close_press.png");

            CountryCombobox.UsesDataSource = true;
            CountryCombobox.Completes      = true;
            CountryCombobox.DataSource     = new CountryDataSource();
            CountryCombobox.SelectItem(0);

            SendButton.Enabled = false;

            EmailTF.Cell.PlaceholderString = "*****@*****.**";
            EmailTF.Changed += (sender, e) => handleTextDidChange((NSNotification)sender);

            InfoLabel.StringValue = "If you don't have an internet connection, " +
                                    "please contact Customer Support on:";

            ServiceTF.StringValue = "Australia 1800 999 906\n" +
                                    "Hong Kong 1800 999 906\n" +
                                    "Malaysia 1800 999 906\n" +
                                    "New Zealand 0800 800 986\n" +
                                    "Singapore 1800 9999 906";

            CancelButton.Title = "Cancel";
            SendButton.Title   = "Send";
        }
Esempio n. 2
0
        public void SetCountryCombobox(nint index)
        {
            if (index == -1)
            {
                return;
            }
            nint curIndex = index < 0 ? 0 : index;

            CountryCombobox.SelectItem(curIndex);
        }