Esempio n. 1
0
 private void ShowBSWomanBlock_IsMouseDirectlyOverChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (IsMouseOver && _CheckSexMouseOVer)
     {
         WorkShopPB.BAnimationFAnimation(ShowBSWoman, ShowBSWomanBlock, _ASize, _BSize, _FontASize, _FontBSize);
         _CheckSexMouseOVer = false;
     }
     else
     {
         WorkShopPB.BAnimationFAnimation(ShowBSWoman, ShowBSWomanBlock, _BSize, _ASize, _FontBSize, _FontASize);
         _CheckSexMouseOVer = true;
     }
 }
Esempio n. 2
0
        private bool CheckText_in_Box()
        {
            Dictionary <TextBlock, bool> TBForeground = new Dictionary <TextBlock, bool>();

            if (LastnameBox.Text.Length == 0)
            {
                TBForeground.Add(LastNameBlock, false);
            }
            else
            {
                TBForeground.Add(LastNameBlock, true);
            }

            if (FirstnameBox.Text.Length == 0)
            {
                TBForeground.Add(FirstNameBlock, false);
            }
            else
            {
                TBForeground.Add(FirstNameBlock, true);
            }

            if (SurnameBox.Text.Length == 0)
            {
                TBForeground.Add(SurnameBlock, false);
            }
            else
            {
                TBForeground.Add(SurnameBlock, true);
            }

            if (CountryBox.Text.Length == 0)
            {
                TBForeground.Add(CountryBlock, false);
            }
            else
            {
                TBForeground.Add(CountryBlock, true);
            }

            if (PhoneNumberBox.Text.Length == 0)
            {
                TBForeground.Add(PhoneNumberBlock, false);
            }
            else
            {
                TBForeground.Add(PhoneNumberBlock, true);
            }

            return(WorkShopPB.ALERT <TextBlock, bool>(TBForeground));
        }