void CreateProfilerWindow() { Window = new ProfilerWindow { Top = Config.Top, Left = Config.Left, Width = Config.Width, Height = Config.Height }; Window.IsVisibleChanged += ProfilerIsVisibleChanged; WindowHelper.EnsureOnScreen(Window); if (Config.Visible) { Window.Show(); } Window.LocationChanged += ProfilerLocationChanged; Window.SizeChanged += ProfilerSizeChanged; Window.TrLevelsListBox.DataContext = TimeRuler.Levels; Window.PgLevelsListBox.DataContext = PerformanceGraph.Levels; Window.PsLevelsListBox.DataContext = ProfilerSummary.Levels; }
void CreateProfilerWindow() { Window = new ProfilerWindow { Top = Config.Top, Left = Config.Left, Width = Config.Width, Height = Config.Height }; Window.IsVisibleChanged += ProfilerIsVisibleChanged; WindowHelper.EnsureOnScreen(Window); if (Config.Visible) Window.Show(); Window.LocationChanged += ProfilerLocationChanged; Window.SizeChanged += ProfilerSizeChanged; Window.TrLevelsListBox.DataContext = TimeRuler.Levels; Window.PgLevelsListBox.DataContext = PerformanceGraph.Levels; Window.PsLevelsListBox.DataContext = ProfilerSummary.Levels; }