示例#1
0
        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);
        }
示例#2
0
        public void InitShortTable()
        {
            var shortmetrics = ExcelClass.EnumerateMetricsShort(Environment.CurrentDirectory + "/thrlist.xlsx").ToList();

            TableShort.ItemsSource = shortmetrics;
        }
示例#3
0
        public void InitLongTable()
        {
            var metrics = ExcelClass.EnumerateMetrics(Environment.CurrentDirectory + "/thrlist.xlsx").ToList();

            TableLong.ItemsSource = metrics;
        }