public DisabledSongsWindow()
        {
            InitializeComponent();

            _songs    = new DispatcherCollection <Song>();
            _instance = MainWindow.GetInstance();
            _settings = _instance.settings;

            SongsList.ItemsSource = _songs;
            DataContext           = this;
        }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();

            _instance = this;
            _songs    = new DispatcherCollection <Song>();
            _timer    = new DispatcherTimer(DispatcherPriority.Normal)
            {
                Interval = TimeSpan.FromMilliseconds(100)
            };
            _timer.Tick += TimerTick;
            AppDomain.CurrentDomain.FirstChanceException += OnExceptionThrow;

            var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            BassNet.Registration(__Private.MAIL, __Private.CODE);

            SongsList.ItemsSource = _songs;
            DataContext           = this;
        }