/// <summary> /// 初期化処理。 /// </summary> protected override void InitializeCore() { // ウィンドウに画面全体の領域を設定する this.screenBounds = ScreenHelper.GetFullScreenBounds(); this.Messenger.Raise(new SetWindowBoundsMessage { MessageKey = "Window.Bounds", Left = this.screenBounds.Left, Top = this.screenBounds.Top, Width = this.screenBounds.Width, Height = this.screenBounds.Height }); // 初期化 this.SendWindowAction(WindowAction.Active); this.RegionSelectionInfo.Initialize(this.ScreenOrigin); // マウス座標の設定 this.SetMousePoint(System.Windows.Forms.Cursor.Position); }
/// <summary> /// 初期化処理。 /// </summary> protected override void InitializeCore() { // ウィンドウに画面全体の範囲を設定する var screenRect = ScreenHelper.GetFullScreenBounds(); this.Messenger.Raise(new SetWindowBoundsMessage { MessageKey = "Window.Bounds", Left = screenRect.Left, Top = screenRect.Top, Width = screenRect.Width, Height = screenRect.Height }); this.screenOrigin = screenRect.Location; // 初期化 this.SendWindowAction(WindowAction.Active); this.controlSelector.Initialize(); this.ControlSelectionInfo.Initialize(this.screenOrigin); // マウス座標の設定 this.SetMousePoint(System.Windows.Forms.Cursor.Position); }