/// <summary> /// プロファイルの「有効・無効」をチェックボックスへ入力 /// </summary> private void SetProfileMembaersWhetherEnabled() { if (Mode == ProfileEditDialogMode.New) { // 新規作成の場合 //bool b = false; WpfTreeUtil.OperateLogicalChildren(MainStackPanel, obj => { CheckBox cb = obj as CheckBox; if (cb != null) { //if( cb == this.PfCheckBox_AllowTransparency ) b = true; //if( b ) cb.IsChecked = false; // 「外観」以降にはチェックを入れない //else cb.IsChecked = true; cb.IsChecked = false; } }); } else if (Mode == ProfileEditDialogMode.Edit) { // 編集の場合 WpfTreeUtil.OperateLogicalChildren(MainStackPanel, obj => { CheckBox cb = obj as CheckBox; if (cb != null) { cb.IsChecked = false; } }); Profile pf = EditingUserProfileInfo.Profile; // ウインドウの状態 if (pf.WindowPos.IsEnabled) { PfCheckBox_WinPos.IsChecked = true; } if (pf.WindowSize.IsEnabled) { PfCheckBox_WinSize.IsChecked = true; } if (pf.IsFullScreenMode.IsEnabled) { PfCheckBox_IsFullScreenMode.IsChecked = true; } // 読み込み if (pf.Path.IsEnabled) { PfCheckBox_Path.IsChecked = true; } if (pf.LastPageIndex.IsEnabled) { PfCheckBox_LastPageIndex.IsChecked = true; } // 列数・行数 if (pf.NumofMatrix.IsEnabled) { PfCheckBox_NumofMatrix.IsChecked = true; } // グリッドのアスペクト比 if (pf.NonFixAspectRatio.IsEnabled) { PfCheckBox_FixAspectRatio.IsChecked = true; } if (pf.AspectRatio.IsEnabled) { PfCheckBox_AspectRatio.IsChecked = true; } // スライド if (pf.SlidePlayMethod.IsEnabled) { PfCheckBox_SlidePlayMethod.IsChecked = true; } if (pf.SlideDirection.IsEnabled) { PfCheckBox_SlideDirection.IsChecked = true; } // スライドショー詳細 if (pf.SlideSpeed.IsEnabled) { PfCheckBox_SlideSpeed.IsChecked = true; } if (pf.SlideInterval.IsEnabled) { PfCheckBox_SlideInterval.IsChecked = true; } if (pf.SlideTimeInIntevalMethod.IsEnabled) { PfCheckBox_SlideTimeInIntevalMethod.IsChecked = true; } if (pf.SlideByOneImage.IsEnabled) { PfCheckBox_SlideByOneImage.IsChecked = true; } if (pf.SlideShowAutoStart.IsEnabled) { PfCheckBox_SlideShowAutoStart.IsChecked = true; } // その他/全般 if (pf.TopMost.IsEnabled) { PfCheckBox_TopMost.IsChecked = true; } if (pf.FileSortMethod.IsEnabled) { PfCheckBox_FileSortMethod.IsChecked = true; } if (pf.ApplyRotateInfoFromExif.IsEnabled) { PfCheckBox_ApplyRotateInfoFromExif.IsChecked = true; } if (pf.BitmapDecodeTotalPixel.IsEnabled) { PfCheckBox_BitmapDecodeTotalPixel.IsChecked = true; } if (pf.DetectionOfSpread.IsEnabled) { PfCheckBox_DetectionOfSpread.IsChecked = true; } // その他/配置 if (pf.UseDefaultTileOrigin.IsEnabled) { PfCheckBox_UseDefaultTileOrigin.IsChecked = true; } if (pf.TileOrigin.IsEnabled) { PfCheckBox_TileOrigin.IsChecked = true; } if (pf.TileOrientation.IsEnabled) { PfCheckBox_TileOrientation.IsChecked = true; } if (pf.TileImageStretch.IsEnabled) { PfCheckBox_TileImageStretch.IsChecked = true; } // その他/外観1 if (pf.AllowTransparency.IsEnabled) { PfCheckBox_AllowTransparency.IsChecked = true; } if (pf.OverallOpacity.IsEnabled) { PfCheckBox_OverallOpacity.IsChecked = true; } if (pf.BackgroundOpacity.IsEnabled) { PfCheckBox_BackgroundOpacity.IsChecked = true; } if (pf.BaseGridBackgroundColor.IsEnabled) { PfCheckBox_BaseGridBackgroundColor.IsChecked = true; } if (pf.UsePlaidBackground.IsEnabled) { PfCheckBox_UsePlaidBackground.IsChecked = true; } if (pf.PairColorOfPlaidBackground.IsEnabled) { PfCheckBox_PairColorOfPlaidBackground.IsChecked = true; } // その他/外観2 if (pf.ResizeGripThickness.IsEnabled) { PfCheckBox_ResizeGripThickness.IsChecked = true; } if (pf.ResizeGripColor.IsEnabled) { PfCheckBox_ResizeGripColor.IsChecked = true; } if (pf.TilePadding.IsEnabled) { PfCheckBox_TilePadding.IsChecked = true; } if (pf.GridLineColor.IsEnabled) { PfCheckBox_GridLineColor.IsChecked = true; } } }