/// <summary>
        /// 画面が表示された後のイベント処理
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            // 初期状態を保存(SPREADリセット時にのみ使用する)
            this.spGridList.Rows.Clear();
            this.sp_Config = AppCommon.SaveSpConfig(this.spGridList);

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            ccfg   = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            frmcfg = (ConfigZIJ06010)ucfg.GetConfigValue(typeof(ConfigZIJ06010));

            if (frmcfg == null)
            {
                frmcfg = new ConfigZIJ06010();
                ucfg.SetConfigValue(frmcfg);
                frmcfg.spConfigZIJ06010 = this.sp_Config;
            }
            else
            {
                // 表示できるかチェック
                var WidthCHK = WinFormsScreen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }

                // 表示できるかチェック
                var HeightCHK = WinFormsScreen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }

                this.Width  = frmcfg.Width;
                this.Height = frmcfg.Height;
            }
            #endregion

            base.MasterMaintenanceWindowList.Add("M09_MYHIN", new List <Type> {
                typeof(MST02010), typeof(SCHM09_MYHIN)
            });
            base.MasterMaintenanceWindowList.Add("M22_SOUK", new List <Type> {
                typeof(MST12020), typeof(SCHM22_SOUK)
            });

            initSearchControl();

            SetFocusToTopControl();
            ResetAllValidation();
        }
 /// <summary>
 /// 画面が閉じられた時、データを保持する
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Window_Closed(object sender, EventArgs e)
 {
     if (ucfg != null)
     {
         if (frmcfg == null)
         {
             frmcfg = new ConfigZIJ06010();
         }
         frmcfg.Top              = this.Top;
         frmcfg.Left             = this.Left;
         frmcfg.Width            = this.Width;
         frmcfg.Height           = this.Height;
         frmcfg.spConfigZIJ06010 = AppCommon.SaveSpConfig(this.spGridList);
         ucfg.SetConfigValue(frmcfg);
         spGridList.InputBindings.Clear();
     }
 }