private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     if (DesignerProperties.GetIsInDesignMode(this))
     {
         return;
     }
     _context = (DurationCooldownIndicator)DataContext;
     _context.Buff.Started += OnRagnarokStarted;
     WindowManager.ClassWindow.VM.CurrentManager.StaminaTracker.PropertyChanged += ST_PropertyChanged;
 }
Esempio n. 2
0
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     if (DesignerProperties.GetIsInDesignMode(this))
     {
         return;
     }
     _context = (DurationCooldownIndicator)DataContext;
     _context.Buff.PropertyChanged += RagnarokBuff_PropertyChanged;
     ClassManager.CurrentClassManager.ST.PropertyChanged += ST_PropertyChanged;
 }
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            //externalArc.BeginAnimation(Arc.EndAngleProperty, new DoubleAnimation(359.9, 0, TimeSpan.FromMilliseconds(50000)));

            if (DesignerProperties.GetIsInDesignMode(this) || DataContext == null)
            {
                return;
            }
            _context = (DurationCooldownIndicator)DataContext;
            _context.Buff.PropertyChanged += Buff_PropertyChanged;
            _anim = new DoubleAnimation(359.9, 0, TimeSpan.FromMilliseconds(_context.Buff.Cooldown));
        }
Esempio n. 4
0
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     //externalArc.BeginAnimation(Arc.EndAngleProperty, new DoubleAnimation(359.9, 0, TimeSpan.FromMilliseconds(50000)));
     if (DesignerProperties.GetIsInDesignMode(this) || !(DataContext is DurationCooldownIndicator))
     {
         return;
     }
     _context = (DurationCooldownIndicator)DataContext;
     RhombFixedSkillControl.DataContext = _context.Cooldown;
     _context.Buff.Started        += OnBuffStarted;
     _context.Buff.SecondsUpdated += OnSecondsUpdated;
     _context.Buff.Ended          += OnBuffEnded;
     _anim = new DoubleAnimation(328, 32, TimeSpan.FromMilliseconds(_context.Buff.Duration));
 }