/// <summary> /// 引数を取得してWindowを設定する /// </summary> private void Setting() { if (this.IsValidity == false) { return; } int x = 0, y = 0; var moveX = CommandLineHelper.GetIntValue(this.keys.posX, out x); var moveY = CommandLineHelper.GetIntValue(this.keys.posY, out y); if (moveX || moveY) { WindowSetting.TryMoveWindow(x, y, 1000, 60); } var topmost = false; if (CommandLineHelper.GetBoolValue(this.keys.topmost, out topmost) && topmost) { WindowSetting.SetToTopMost(); } else { this.loopMost.Validity = false; } }
/// <summary> /// トップ化処理をする /// </summary> private void SetMost() { if (this.loopMost.MostType == MostType.Top) { WindowSetting.SetToTopMost(); } else if (this.loopMost.MostType == MostType.Untop) { WindowSetting.SetToUntopMost(); } }