/// <summary> /// 向当前窗口添加图像对。 /// </summary> private void AddImagePairs() { var addWindow = new ImagePairAddWindow() { Owner = this }; if (addWindow.ShowDialog() == true) { this.Model.AddImagePairs(addWindow.GetImagePairs()); } }
/// <summary> /// 初始化 <see cref="ImagePairAddWindow"/> 类。 /// </summary> static ImagePairAddWindow() { ImagePairAddWindow.InitializeCommandBindings(); }