/// <summary> /// 現在のウィンドウ情報を取得し、コンボボックスを更新します。 /// </summary> public void UpdateWindowInformations() { this.WindowsComboBox.Items.Clear(); this.windowInformations = WindowInfo.GetAllActiveWindows(); //Console.WriteLine(" == Informations == "); foreach (var item in this.windowInformations) { this.WindowsComboBox.Items.Add(new WindowItemInfo(item, false)); //Console.WriteLine("\"{0}\"=x:{1},y:{2},w:{3},h:{4}", item.Name, item.PositionX, item.PositionY, item.Width, item.Height); foreach (var subItem in item.Children) { this.WindowsComboBox.Items.Add(new WindowItemInfo(subItem, true)); //Console.WriteLine(">> \"{0}\"=x:{1},y:{2},w:{3},h:{4}", subItem.Name, subItem.PositionX, subItem.PositionY, subItem.Width, subItem.Height); } } }