public TestPage() { this.DataContext = this; InitializeComponent(); this.Title += " (Build " + PeHeaderReader.GetAssemblyHeader().TimeStamp.ToString() + ")"; ChartUtilities.AddTestLines(xyLineChart); xyLineChart.SubNotes = new string[] { "Right or Middle Mouse Button To Zoom, Left Mouse Button To Pan, Right Double-Click To Reset" }; copyToClipboard.DoCopyToClipboard = ChartUtilities.CopyChartToClipboard; xyLineChart.PointSelected += xyLineChart_PointSelected; }
public MainWindow() { _titleSuffix = " - Big CSV File Viewer (Build " + PeHeaderReader.GetAssemblyHeader(typeof(MainWindow)).TimeStamp.ToString() + ") "; this.Title = _titleSuffix; InitializeComponent(); DependencyPropertyDescriptor dpd = DependencyPropertyDescriptor.FromProperty(BigTextFileViewer.FilenameProperty, typeof(BigTextFileViewer)); dpd.AddValueChanged(viewer, (s, e) => { this.Title = Path.GetFileName(viewer.Filename) + _titleSuffix; }); }