private void CommentListWindowInit() { if (commentListWindow == null) { commentListWindow = new CommentList(); commentListWindow.Owner = Window.GetWindow(this); commentListWindow.ShowInTaskbar = false; commentListWindow.Show(); commentListWindow.Closed += CommentListWindow_Closed; commentList.ForEach(x => commentListWindow.AddComment(x)); } }
private void CommentListWindow_Closed(object sender, EventArgs e) { commentListWindow = null; }