Example #1
0
        //finsihed
        private void ClearTextBoxesEditBalanceItems()
        {
            LabelFirstNameEditBalance.Text     = "";
            LabelLastNameEditBalance.Text      = "";
            LabelE_MailAddressEditBalance.Text = "";
            LabelDateofChangeEditBalance.Text  = "";
            LabelCurrentBalanceShow.Text       = "";
            LabelNewBalanceShow.Text           = "";
            LabelStreetEditBalance.Text        = "";
            LabelStreetNumberEditBalance.Text  = "";
            LabelPostcodeEditBalance.Text      = "";
            LabelCityEditBalance.Text          = "";
            LabelCountryEditBalance.Text       = "";
            TextBoxNewAmount.Clear();
            TextBoxNewAmount.BackColor = Color.Empty;

            LabelFirstNameEditItems.Text     = "";
            LabelCurrentBalanceEditItem.Text = "";
            LabelDateofChangeEditItems.Text  = "";
            TextBoxEMailEditItems.Clear();
            TextBoxEMailEditItems.BackColor = Color.Empty;
            TextBoxLastNameEditItems.Clear();
            TextBoxLastNameEditItems.BackColor = Color.Empty;
            TextBoxStreetEditItems.Clear();
            TextBoxStreetEditItems.BackColor = Color.Empty;
            TextBoxEditStreetNumberItems.Clear();
            TextBoxEditStreetNumberItems.BackColor = Color.Empty;
            TextBoxPostcodeEditItems.Clear();
            TextBoxPostcodeEditItems.BackColor = Color.Empty;
            TextBoxCityEditItems.Clear();
            TextBoxCityEditItems.BackColor = Color.Empty;
            TextBoxCountryEditItems.Clear();
            TextBoxCountryEditItems.BackColor = Color.Empty;
        }
Example #2
0
        //to test
        private void UpdateBalanceTab(Customer customer)
        {
            LabelFirstNameEditBalance.Text     = customer._firstName;
            LabelLastNameEditBalance.Text      = customer._lastName;
            LabelE_MailAddressEditBalance.Text = customer._eMail.getEmailAddress();
            LabelDateofChangeEditBalance.Text  = customer._DateOfChange.ToString();
            LabelCurrentBalanceShow.Text       = customer._MoneyBalance.ToString();

            if (customer._adress != null)
            {
                LabelStreetEditBalance.Text       = customer._adress._street;
                LabelStreetNumberEditBalance.Text = customer._adress._housenumber.ToString();
                LabelPostcodeEditBalance.Text     = customer._adress._postcode.ToString();
                LabelCityEditBalance.Text         = customer._adress._location;
                LabelCountryEditBalance.Text      = customer._adress._country;
            }
            TextBoxNewAmount.Clear();
            TextBoxNewAmount.BackColor = Color.Empty;
            LabelNewBalanceShow.Text   = "";
        }