コード例 #1
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 = (ConfigSRY11010)ucfg.GetConfigValue(typeof(ConfigSRY11010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSRY11010();
                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.Width    = frmcfg.Width;
                this.Height   = frmcfg.Height;
                this.作成年      = frmcfg.作成年;
                this.作成月      = frmcfg.作成月;
                this.集計期間From = frmcfg.集計期間From;
                this.集計期間To   = frmcfg.集計期間To;
                //this.表示順序_Cmb.SelectedIndex = frmcfg.区分1;
            }
            #endregion

            //F1 車種
            base.MasterMaintenanceWindowList.Add("M06_SYA", new List <Type> {
                null, typeof(SCH05010)
            });
            //AppCommon.SetutpComboboxList(this.表示順序_Cmb, false);
            SetFocusToTopControl();
        }
コード例 #2
0
        /// <summary>
        /// 画面読み込み
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            base.MasterMaintenanceWindowList.Add("M01_TOK", new List <Type> {
                null, typeof(SCH01010)
            });
            AppCommon.SetutpComboboxList(this.作成区分_Combo1, false);
            作成区分_Combo = 0;

            #region 設定項目取得
            ucfg   = AppCommon.GetConfig(this);
            frmcfg = (ConfigSRY11010)ucfg.GetConfigValue(typeof(ConfigSRY11010));
            if (frmcfg == null)
            {
                frmcfg = new ConfigSRY11010();
                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.作成月;
                this.集計年月   = frmcfg.集計年月;
            }
            #endregion

            SetFocusToTopControl();
        }