Beispiel #1
0
 public PowerDisplay(PowerDisplayVM vm)
 {
     InitializeComponent();
     DataContext     = vm;
     this.MouseDown += Window_MouseDown;
     this.Closing   += Window_Closing;
 }
Beispiel #2
0
        public BuffetVM()
        {
            DefaultSoundSettings = new SoundSettingsVM()
            {
                BuffName = "Default buff"
            };

            PowerDisplay  = new PowerDisplayVM();
            SoundSettings = new ObservableCollection <SoundSettingsVM>();

            effects.CollectionChanged += effects_CollectionChanged;

            System.Timers.Timer t = new System.Timers.Timer(200);
            t.Start();
            t.Elapsed += CheckTimeRemaining;
        }