Beispiel #1
0
 public GeneralPage()
 {
     _mainWindow   = WindowBase.GetCurrentFirst <MainWindow>();
     _configWindow = WindowBase.GetCurrentFirst <ConfigWindow>();
     InitializeComponent();
     ScannerViewModel = Services.Get <OsuFileScanner>().ViewModel;
 }
        private void BtnAddCollection_Click(object sender, RoutedEventArgs e)
        {
            var addCollectionControl = new AddCollectionControl();

            _overlay.ShowContent(addCollectionControl, DialogOptionFactory.AddCollectionOptions, (obj, args) =>
            {
                _appDbOperator.AddCollection(addCollectionControl.CollectionName.Text);

                WindowBase.GetCurrentFirst <MainWindow>().UpdateCollections();
                RefreshList();
            });
        }
Beispiel #3
0
 public LyricPage()
 {
     _mainWindow = WindowBase.GetCurrentFirst <MainWindow>();
     InitializeComponent();
 }
Beispiel #4
0
 public AboutPage()
 {
     _mainWindow   = WindowBase.GetCurrentFirst <MainWindow>();
     _configWindow = WindowBase.GetCurrentFirst <ConfigWindow>();
     InitializeComponent();
 }