Beispiel #1
0
        void ReleaseDesignerOutlets()
        {
            if (NameLabel != null)
            {
                NameLabel.Dispose();
                NameLabel = null;
            }

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

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

            if (RepeatLabel != null)
            {
                RepeatLabel.Dispose();
                RepeatLabel = null;
            }
        }
Beispiel #2
0
        private void AnimateRepeatOptions()
        {
            if (_isReminder)
            {
                return;
            }

            RepeatLabel.Visibility         = System.Windows.Visibility.Visible;
            NumDaysComboBoxGrid.Visibility = System.Windows.Visibility.Visible;

            DoubleAnimation db  = new DoubleAnimation();
            DoubleAnimation db2 = new DoubleAnimation();
            DoubleAnimation db3 = new DoubleAnimation();


            SetDoubleAnimations(db, db2, db3);

            RepeatLabel.BeginAnimation(HeightProperty, db2);
            NumDaysComboBoxGrid.BeginAnimation(HeightProperty, db3);
        }