Esempio n. 1
0
        /// <summary>
        /// Loadイベント
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            #region 設定項目取得
            ucfg = AppCommon.GetConfig(this);
            // 権限設定を呼び出す(ucfgを取得した後のに入れる)
            ccfg = (CommonConfig)ucfg.GetConfigValue(typeof(CommonConfig));
            // 登録ボタン設定
            if (!権限Get.Authority_Update_Button(ccfg, this.GetType().Name))
            {
                DataUpdateVisible = System.Windows.Visibility.Hidden;
            }
            frmcfg = (ConfigSHR08010)ucfg.GetConfigValue(typeof(ConfigSHR08010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSHR08010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
            }
            #endregion

            ScreenClear();

            base.MasterMaintenanceWindowList.Add("M22_SOUK", new List <Type> {
                null, typeof(SCHM22_SOUK)
            });
            base.MasterMaintenanceWindowList.Add("M70_JIS", new List <Type> {
                typeof(MST16010), typeof(SCHM70_JIS)
            });
        }
Esempio n. 2
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            // 画面が表示される最後の段階で処理すべき内容があれば、ここに記述します。
            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSHR08010)ucfg.GetConfigValue(typeof(ConfigSHR08010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSHR08010();
                ucfg.SetConfigValue(frmcfg);
            }
            else
            {
                //表示できるかチェック
                var WidthCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - frmcfg.Left;
                if (WidthCHK > 10)
                {
                    this.Left = frmcfg.Left;
                }
                //表示できるかチェック
                var HeightCHK = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - frmcfg.Top;
                if (HeightCHK > 10)
                {
                    this.Top = frmcfg.Top;
                }
                this.Height = frmcfg.Height;
                this.Width  = frmcfg.Width;
                this.作成年    = frmcfg.作成年;
                this.作成月    = frmcfg.作成月;
            }
            #endregion

            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                null, typeof(SCH01010)
            });
            AppCommon.SetutpComboboxList(this.集計区分_Cmb, false);
            AppCommon.SetutpComboboxList(this.表示区分_Cmb, false);
            AppCommon.SetutpComboboxList(this.表示順序_Cmb, false);
            SetFocusToTopControl();
        }