/// <summary>
        /// 向当前窗口添加图像对。
        /// </summary>
        private void AddImagePairs()
        {
            var addWindow = new ImagePairAddWindow()
            {
                Owner = this
            };

            if (addWindow.ShowDialog() == true)
            {
                this.Model.AddImagePairs(addWindow.GetImagePairs());
            }
        }
예제 #2
0
 /// <summary>
 /// 初始化 <see cref="ImagePairAddWindow"/> 类。
 /// </summary>
 static ImagePairAddWindow()
 {
     ImagePairAddWindow.InitializeCommandBindings();
 }