private void TableShort_MouseDoubleClick(object sender, MouseButtonEventArgs e) { var firstSelectedCellContent = this.TableShort.Columns[0].GetCellContent(this.TableShort.SelectedItem); var firstSelectedCell = firstSelectedCellContent != null ? firstSelectedCellContent.Parent as DataGridCell : null; string s = ExcelClass.Find(Environment.CurrentDirectory + "/thrlist.xlsx", Convert.ToString(firstSelectedCell).Substring(42)); MessageBox.Show(s); }
public void InitShortTable() { var shortmetrics = ExcelClass.EnumerateMetricsShort(Environment.CurrentDirectory + "/thrlist.xlsx").ToList(); TableShort.ItemsSource = shortmetrics; }
public void InitLongTable() { var metrics = ExcelClass.EnumerateMetrics(Environment.CurrentDirectory + "/thrlist.xlsx").ToList(); TableLong.ItemsSource = metrics; }