public PowerDisplay(PowerDisplayVM vm) { InitializeComponent(); DataContext = vm; this.MouseDown += Window_MouseDown; this.Closing += Window_Closing; }
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; }