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(); }); }
public LyricPage() { _mainWindow = WindowBase.GetCurrentFirst <MainWindow>(); InitializeComponent(); }
public AboutPage() { _mainWindow = WindowBase.GetCurrentFirst <MainWindow>(); _configWindow = WindowBase.GetCurrentFirst <ConfigWindow>(); InitializeComponent(); }