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"; }
public void SetCountryCombobox(nint index) { if (index == -1) { return; } nint curIndex = index < 0 ? 0 : index; CountryCombobox.SelectItem(curIndex); }
protected void FillCountryCombobox() { try { DataTable dt = new DataTable(); dt = VSWebBL.SecurityBL.LocationsBL.Ins.GetAllCountries(); CountryCombobox.DataSource = dt; CountryCombobox.TextField = "Country"; CountryCombobox.ValueField = "Country"; CountryCombobox.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
void ReleaseDesignerOutlets() { if (CloseButton != null) { CloseButton.Dispose(); CloseButton = null; } if (CountryLabel != null) { CountryLabel.Dispose(); CountryLabel = null; } if (CountryCombobox != null) { CountryCombobox.Dispose(); CountryCombobox = null; } if (EmailLabel != null) { EmailLabel.Dispose(); EmailLabel = null; } if (EmailTF != null) { EmailTF.Dispose(); EmailTF = null; } if (InfoLabel != null) { InfoLabel.Dispose(); InfoLabel = null; } if (ServiceTF != null) { ServiceTF.Dispose(); ServiceTF = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (SendButton != null) { SendButton.Dispose(); SendButton = null; } if (TopImageView != null) { TopImageView.Dispose(); TopImageView = null; } if (LogoImageView != null) { LogoImageView.Dispose(); LogoImageView = null; } if (BottonImageView != null) { BottonImageView.Dispose(); BottonImageView = null; } }