public void OpenAdminPanel() { _currentWindow = new AdminPanel(); _context.LoadAdminPanel(); _currentWindow.DataContext = _context; _currentWindow.Show(); }