Interaction logic for Window1.xaml
Inheritance: System.Windows.Window
コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: WindowsProfiler.cs プロジェクト: bartwe/Gearset
        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;
        }