コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

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

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

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

            if (MobileLabel != null)
            {
                MobileLabel.Dispose();
                MobileLabel = null;
            }
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

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

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

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

            if (NameLabel != null)
            {
                NameLabel.Dispose();
                NameLabel = null;
            }
        }
コード例 #3
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

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

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

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

            if (WebsiteLabel != null)
            {
                WebsiteLabel.Dispose();
                WebsiteLabel = null;
            }
        }
コード例 #4
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

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

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

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

            if (ProfilePhotoImageView != null)
            {
                ProfilePhotoImageView.Dispose();
                ProfilePhotoImageView = null;
            }
        }
コード例 #5
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
 public void Address3Test()
 {
     AddressLabel addressLabel = new AddressLabel();
     Assert.AreEqual(addressLabel.Address3, string.Empty, "Expected Address3 to initially be empty string");
     addressLabel.Address3 = "Great Amwell";
     Assert.AreEqual(addressLabel.Address3, "Great Amwell", "Address3 property not set as expected");
 }
コード例 #6
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

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

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

            if (PostalCodeLabel != null)
            {
                PostalCodeLabel.Dispose();
                PostalCodeLabel = null;
            }
        }
コード例 #7
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
 public void TownTest()
 {
     AddressLabel addressLabel = new AddressLabel();
     Assert.AreEqual(addressLabel.Town, string.Empty, "Expected Town to initially be empty string");
     addressLabel.Town = "Ware";
     Assert.AreEqual(addressLabel.Town, "Ware", "Town property not set as expected");
 }
コード例 #8
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
 public void Address1Test()
 {
     AddressLabel addressLabel = new AddressLabel();
     Assert.AreEqual(addressLabel.Address1, string.Empty, "Expected Address1 to initially be empty string");
     addressLabel.Address1 = "1 Acacia Avenue";
     Assert.AreEqual(addressLabel.Address1, "1 Acacia Avenue", "Address1 property not set as expected");
 }
コード例 #9
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
 public void Address2Test()
 {
     AddressLabel addressLabel = new AddressLabel();
     Assert.AreEqual(addressLabel.Address2, string.Empty, "Expected Address2 to initially be empty string");
     addressLabel.Address2 = "Little Amwell";
     Assert.AreEqual(addressLabel.Address2, "Little Amwell", "Address2 property not set as expected");
 }
 void ReleaseDesignerOutlets()
 {
     if (AddressLabel != null)
     {
         AddressLabel.Dispose();
         AddressLabel = null;
     }
     if (CityLabel != null)
     {
         CityLabel.Dispose();
         CityLabel = null;
     }
     if (ConfirmButton != null)
     {
         ConfirmButton.Dispose();
         ConfirmButton = null;
     }
     if (GoBackButton != null)
     {
         GoBackButton.Dispose();
         GoBackButton = null;
     }
     if (NameLabel != null)
     {
         NameLabel.Dispose();
         NameLabel = null;
     }
     if (PhoneLabel != null)
     {
         PhoneLabel.Dispose();
         PhoneLabel = null;
     }
 }
コード例 #11
0
ファイル: AddressLabelTest.cs プロジェクト: odnodn/mscui
        public void CountryTest()
        {
            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual(addressLabel.Country, string.Empty, "Expected Country to initially be empty string");
            addressLabel.Country = "UK";
            Assert.AreEqual(addressLabel.Country, "UK", "Country property not set as expected");
        }
コード例 #12
0
ファイル: AddressLabelTest.cs プロジェクト: odnodn/mscui
        public void CountyTest()
        {
            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual(addressLabel.County, string.Empty, "Expected County to initially be empty string");
            addressLabel.County = "Herfordshire";
            Assert.AreEqual(addressLabel.County, "Herfordshire", "County property not set as expected");
        }
コード例 #13
0
ファイル: AddressLabelTest.cs プロジェクト: odnodn/mscui
        public void TownTest()
        {
            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual(addressLabel.Town, string.Empty, "Expected Town to initially be empty string");
            addressLabel.Town = "Ware";
            Assert.AreEqual(addressLabel.Town, "Ware", "Town property not set as expected");
        }
コード例 #14
0
ファイル: AddressLabelTest.cs プロジェクト: odnodn/mscui
        public void Address3Test()
        {
            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual(addressLabel.Address3, string.Empty, "Expected Address3 to initially be empty string");
            addressLabel.Address3 = "Great Amwell";
            Assert.AreEqual(addressLabel.Address3, "Great Amwell", "Address3 property not set as expected");
        }
コード例 #15
0
ファイル: AddressLabelTest.cs プロジェクト: odnodn/mscui
        public void Address2Test()
        {
            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual(addressLabel.Address2, string.Empty, "Expected Address2 to initially be empty string");
            addressLabel.Address2 = "Little Amwell";
            Assert.AreEqual(addressLabel.Address2, "Little Amwell", "Address2 property not set as expected");
        }
コード例 #16
0
ファイル: AddressLabelTest.cs プロジェクト: odnodn/mscui
        public void Address1Test()
        {
            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual(addressLabel.Address1, string.Empty, "Expected Address1 to initially be empty string");
            addressLabel.Address1 = "1 Acacia Avenue";
            Assert.AreEqual(addressLabel.Address1, "1 Acacia Avenue", "Address1 property not set as expected");
        }
コード例 #17
0
ファイル: AddressLabelTest.cs プロジェクト: odnodn/mscui
        public void PostCodeTest()
        {
            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual(addressLabel.Postcode, string.Empty, "Expected PostCode to initially be empty string");
            addressLabel.Postcode = "WR1 1RG";
            Assert.AreEqual(addressLabel.Postcode, "WR1 1RG", "PostCode property not set as expected");
        }
コード例 #18
0
        void ReleaseDesignerOutlets()
        {
            if (AddressLabel != null)
            {
                AddressLabel.Dispose();
                AddressLabel = null;
            }

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

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

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

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

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

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

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
コード例 #19
0
        public void CountyTest()
        {
            string testValue = "Warwickshire";

            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual <string>(string.Empty, addressLabel.County, "Expected County to initially be string.Empty");
            addressLabel.County = testValue;
            Assert.AreEqual <string>(testValue, addressLabel.County, "County property not set as expected");
        }
コード例 #20
0
ファイル: AddressLabelTest.cs プロジェクト: odnodn/mscui
        public void AddressDisplayFormatTest()
        {
            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual(addressLabel.AddressDisplayFormat, AddressDisplayFormat.InForm, "Expected AddressDisplayFormat to initially be InForm");

            AddressDisplayFormat testValue = AddressDisplayFormat.InLine;

            addressLabel.AddressDisplayFormat = testValue;
            Assert.AreEqual(addressLabel.AddressDisplayFormat, testValue, "AddressDisplayFormat property not set as expected");
        }
コード例 #21
0
        public void TownTest()
        {
            string testValue = "Coventry";

            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual <string>(string.Empty, addressLabel.Town, "Expected Town to initially be string.Empty");

            addressLabel.Town = testValue;
            Assert.AreEqual <string>(testValue, addressLabel.Town, "Town property not set as expected");
        }
コード例 #22
0
        public void CountryTest()
        {
            string testValue = "United Kingdom";

            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual <string>(string.Empty, addressLabel.Country, "Expected Country to initially be string.Empty");

            addressLabel.Country = testValue;
            Assert.AreEqual <string>(testValue, addressLabel.Country, "PostCode property not set as expected");
        }
コード例 #23
0
        public void PostcodeTest()
        {
            string testValue = "C48 9DB";

            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual <string>(string.Empty, addressLabel.Postcode, "Expected PostCode to initially be string.Empty");

            addressLabel.Postcode = testValue;
            Assert.AreEqual <string>(testValue, addressLabel.Postcode, "PostCode property not set as expected");
        }
コード例 #24
0
        public void Address1Test()
        {
            string testValue = "65 Willow Road";

            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual <string>(string.Empty, addressLabel.Address1, "Expected Address1 to initially be string.Empty");

            addressLabel.Address1 = testValue;
            Assert.AreEqual <string>(testValue, addressLabel.Address1, "Address1 property not set as expected");
        }
コード例 #25
0
        public void Address2Test()
        {
            string testValue = "Hedle End";

            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual <string>(string.Empty, addressLabel.Address2, "Expected Address2 to initially be string.Empty");

            addressLabel.Address2 = testValue;
            Assert.AreEqual <string>(testValue, addressLabel.Address2, "Address2 property not set as expected");
        }
コード例 #26
0
        public void Address3Test()
        {
            string testValue = "Off London Road";

            AddressLabel addressLabel = new AddressLabel();

            Assert.AreEqual <string>(string.Empty, addressLabel.Address3, "Expected Address3 to initially be string.Empty");

            addressLabel.Address3 = testValue;
            Assert.AreEqual <string>(testValue, addressLabel.Address3, "Address3 property not set as expected");
        }
 void ReleaseDesignerOutlets()
 {
     if (AddressLabel != null)
     {
         AddressLabel.Dispose();
         AddressLabel = null;
     }
     if (DateLabel != null)
     {
         DateLabel.Dispose();
         DateLabel = null;
     }
 }
コード例 #28
0
        private Address AssignToAddressFromLabels(int[] labels, string[] words)
        {
            if (labels.Length != words.Length)
            {
                throw new Exception("Number of labels does not match number of words.");
            }

            Address address = new Address();

            for (int i = 0; i < labels.Length; i++)
            {
                AddressLabel label = (AddressLabel)labels[i];
                string       word  = words[i]?.Trim();

                switch (label)
                {
                case AddressLabel.Street:
                    address.Street += string.IsNullOrEmpty(address.Street) ? word : " " + word;
                    break;

                case AddressLabel.AdditionalLine1:
                    address.AdditionalLine1 += string.IsNullOrEmpty(address.AdditionalLine1) ? word : " " + word;
                    break;

                case AddressLabel.AdditionalLine2:
                    address.AdditionalLine2 += string.IsNullOrEmpty(address.AdditionalLine2) ? word : " " + word;
                    break;

                case AddressLabel.City:
                    address.City += string.IsNullOrEmpty(address.City) ? word : " " + word;
                    break;

                case AddressLabel.State:
                    address.State += string.IsNullOrEmpty(address.State) ? word : " " + word;
                    break;

                case AddressLabel.Zip:
                    address.Zip += string.IsNullOrEmpty(address.Zip) ? word : " " + word;
                    break;

                case AddressLabel.Plus4:
                    address.Plus4 += string.IsNullOrEmpty(address.Plus4) ? word : " " + word;
                    break;

                default:
                    throw new Exception($"Label {label} for '{word}' is invalid.");
                }
            }

            return(address);
        }
コード例 #29
0
    /// <summary>
    /// Render the build no inside a span
    /// </summary>
    private void RenderBuildNo()
    {
        // Use the address label control to extract the build no. form nhscui.toolkit.web assembly
        AddressLabel addresslabel = new AddressLabel();
        string       buildNumber  = System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetAssembly(addresslabel.GetType()).Location).FileVersion;

        this.buildNo.InnerText = string.Format(CultureInfo.CurrentCulture, "Build No: {0}", buildNumber);

        // Add the build number so a new version of the site won't use the old stylesheet
        if (!IsPostBack)
        {
            this.mainStylesheet.Href += "?" + buildNumber;
        }
    }
コード例 #30
0
 private void Method_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.Method.SelectedIndex == 1)
     {
         AddressLabel.Text = R._("書き込む");
         AddressLabel.Show();
         Address.Show();
         HookRegisterLabel.Hide();
         HookRegister.Hide();
         FREEAREALabel.Hide();
         FREEAREA.Hide();
         PatchMakerButton.Show();
         DebugSymbol.Show();
         DebugSymbolComboBox.Show();
         ELFLabel.Hide();
         ELFComboBox.Hide();
         Address.Value = FREEAREA.Value;
     }
     else if (this.Method.SelectedIndex == 2)
     {
         AddressLabel.Text = R._("フックするアドレス");
         AddressLabel.Show();
         Address.Show();
         HookRegisterLabel.Show();
         HookRegister.Show();
         FREEAREALabel.Show();
         FREEAREA.Show();
         PatchMakerButton.Show();
         DebugSymbol.Show();
         DebugSymbolComboBox.Show();
         ELFLabel.Hide();
         ELFComboBox.Hide();
         Address.Value = 0;
     }
     else
     {
         AddressLabel.Hide();
         Address.Hide();
         HookRegisterLabel.Hide();
         HookRegister.Hide();
         FREEAREALabel.Hide();
         FREEAREA.Hide();
         PatchMakerButton.Hide();
         DebugSymbol.Hide();
         DebugSymbolComboBox.Hide();
         ELFLabel.Show();
         ELFComboBox.Show();
     }
 }
コード例 #31
0
 void ReleaseDesignerOutlets()
 {
     if (AddressLabel != null)
     {
         AddressLabel.Dispose();
         AddressLabel = null;
     }
     if (BedsLabel != null)
     {
         BedsLabel.Dispose();
         BedsLabel = null;
     }
     if (PropertyImage != null)
     {
         PropertyImage.Dispose();
         PropertyImage = null;
     }
 }
 void ReleaseDesignerOutlets()
 {
     if (AddressLabel != null)
     {
         AddressLabel.Dispose();
         AddressLabel = null;
     }
     if (BathsLabel != null)
     {
         BathsLabel.Dispose();
         BathsLabel = null;
     }
     if (BedsLabel != null)
     {
         BedsLabel.Dispose();
         BedsLabel = null;
     }
     if (EstimatedValueLabel != null)
     {
         EstimatedValueLabel.Dispose();
         EstimatedValueLabel = null;
     }
     if (FeatureText != null)
     {
         FeatureText.Dispose();
         FeatureText = null;
     }
     if (PropertyImage != null)
     {
         PropertyImage.Dispose();
         PropertyImage = null;
     }
     if (RateChangeLabel != null)
     {
         RateChangeLabel.Dispose();
         RateChangeLabel = null;
     }
     if (TableDetailView != null)
     {
         TableDetailView.Dispose();
         TableDetailView = null;
     }
 }
コード例 #33
0
        void ReleaseDesignerOutlets()
        {
            if (ContentView != null)
            {
                ContentView.Dispose();
                ContentView = null;
            }

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

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

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

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

            if (MapView != null)
            {
                MapView.Dispose();
                MapView = null;
            }
        }
 private void PublishForm_Load(object sender, EventArgs e)
 {
     if (_tableName == "Arcticles")
     {
         LinkAddress.Hide();
         AddressLabel.Hide();
         StartPage.Hide();
         EndPage.Hide();
     }
     if (_tableName == "Books")
     {
         Dictionary <int, string> dict = _productService.GetAuthorsForPublishment();
         AuthorsCombo.DataSource    = new BindingSource(dict, null);
         AuthorsCombo.DisplayMember = "Value";
         AuthorsCombo.ValueMember   = "Key";
         LinkAddress.Hide();
         AddressLabel.Hide();
     }
     else
     {
         StartPage.Hide();
         EndPage.Hide();
     }
 }
コード例 #35
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
 public void PostCodeTest()
 {
     AddressLabel addressLabel = new AddressLabel();
     Assert.AreEqual(addressLabel.Postcode, string.Empty, "Expected PostCode to initially be empty string");
     addressLabel.Postcode = "WR1 1RG";
     Assert.AreEqual(addressLabel.Postcode, "WR1 1RG", "PostCode property not set as expected");
 }
コード例 #36
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
 public void CountryTest()
 {
     AddressLabel addressLabel = new AddressLabel();
     Assert.AreEqual(addressLabel.Country, string.Empty, "Expected Country to initially be empty string");
     addressLabel.Country = "UK";
     Assert.AreEqual(addressLabel.Country, "UK", "Country property not set as expected");
 }
コード例 #37
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
        public void AddressDisplayFormatTest()
        {
            AddressLabel addressLabel = new AddressLabel();
            Assert.AreEqual(addressLabel.AddressDisplayFormat, AddressDisplayFormat.InForm, "Expected AddressDisplayFormat to initially be InForm");

            AddressDisplayFormat testValue = AddressDisplayFormat.InLine;
            addressLabel.AddressDisplayFormat = testValue;
            Assert.AreEqual(addressLabel.AddressDisplayFormat, testValue, "AddressDisplayFormat property not set as expected");
        }
コード例 #38
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
 public void AddressDisplayFormatBadParameterTest()
 {
     AddressLabel addressLabel = new AddressLabel();
     addressLabel.AddressDisplayFormat = (AddressDisplayFormat)99;
 }
コード例 #39
0
ファイル: AddressLabelTest.cs プロジェクト: rbirkby/mscui
 public void CountyTest()
 {
     AddressLabel addressLabel = new AddressLabel();
     Assert.AreEqual(addressLabel.County, string.Empty, "Expected County to initially be empty string");
     addressLabel.County = "Herfordshire";
     Assert.AreEqual(addressLabel.County, "Herfordshire", "County property not set as expected");
 }