private void BtnAddNewMainRow_Click(object sender, RoutedEventArgs e) { _viewModel.AddNewMainRow(MainGrid.SelectedIndex != -1); }