Skip to content

Commit

Permalink
Fixed to be able to launch multiple windows
Browse files Browse the repository at this point in the history
  • Loading branch information
yt3trees committed Nov 19, 2023
1 parent ed2d129 commit 5731d6f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions msbuild-gui/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -706,11 +706,15 @@ private void ShowResult(string[,] list, string cmdErrorText)
/// <param name="title">ウィンドウタイトル</param>
/// <param name="count">ビルド対象数</param>
/// <param name="errorText">エラーテキスト</param>
private void ShowResult(string title,int count, string[,] list ,string errorText )
private void ShowResult(string title, int count, string[,] list, string errorText)
{
var window = new Console(title, count, list, errorText);
window.Owner = this;
window.ShowDialog();
// 親ウィンドウの中心位置に配置
double parentCenterX = this.Left + (this.Width / 2);
double parentCenterY = this.Top + (this.Height / 2);
window.Left = parentCenterX - (window.Width / 2);
window.Top = parentCenterY - (window.Height / 2);
window.Show();
}
private void ToastNotificationManagerCompat_OnActivated(ToastNotificationActivatedEventArgsCompat e)
{
Expand Down

0 comments on commit 5731d6f

Please sign in to comment.