private void CmViewRunesClick(object sender, RoutedEventArgs e) { var account = _accountsDataGrid.SelectedItem as Account; if (account == null) { return; } var window = new RunesWindow(account); window.Show(); }