Exemplo n.º 1
0
        //────────────────────────────────────────

        /// <summary>
        /// 全てのフォームの、レイアウトの一時停止を解除。
        /// </summary>
        private void ResumeLayout(
            TableUserformconfig fo_Config,
            MemoryApplication memoryApplication,
            Log_Reports pg_Logging
            )
        {
            Log_Method pg_Method = new Log_MethodImpl(0, Log_ReportsImpl.BDebugmode_Static);

            pg_Method.BeginMethod(Info_LayoutImpl.Name_Library, this, "ResumeLayout", pg_Logging);
            //
            //

            foreach (RecordUserformconfig fo_Record in fo_Config.List_RecordUserformconfig)
            {
                string sName_Control;
                fo_Record.TryGetString(out sName_Control, NamesFld.S_NAME, true, "", memoryApplication, pg_Logging);

                //
                // S → E。 コントロール名
                Expression_Node_StringImpl ec_FcName = new Expression_Node_StringImpl(null, fo_Record.Parent_TableUserformconfig.Cur_Configurationtree);
                ec_FcName.AppendTextNode(
                    sName_Control,
                    fo_Record.Parent_TableUserformconfig.Cur_Configurationtree,
                    pg_Logging
                    );


                List <Usercontrol> list_FcUc;
                if (pg_Logging.Successful)
                {
                    list_FcUc = memoryApplication.MemoryForms.GetUsercontrolsByName(
                        ec_FcName,
                        true,
                        pg_Logging
                        );
                }
                else
                {
                    list_FcUc = new List <Usercontrol>();
                }


                if (pg_Logging.Successful)
                {
                    Usercontrol uct = list_FcUc[0];

                    if (uct is UsercontrolWindow)
                    {
                        UsercontrolWindow uctWnd = (UsercontrolWindow)uct;
                        uctWnd.CustomcontrolWindow1.ResumeLayout(false);
                    }
                }
            }

            //
            //
            //
            //
            pg_Method.EndMethod(pg_Logging);
        }
Exemplo n.º 2
0
        //────────────────────────────────────────

        public Usercontrol Perform(
            Expression_Node_StringImpl ec_FcName,
            MemoryApplication owner_MemoryApplication
            )
        {
            UsercontrolWindow uctWnd = new UsercontrolWindow();

            // 名前だけ初期設定
            uctWnd.Expression_Name_Control = ec_FcName;
            uctWnd.ControlCommon.Owner_MemoryApplication = owner_MemoryApplication;
            uctWnd.CustomcontrolWindow1.StartPosition    = System.Windows.Forms.FormStartPosition.CenterScreen;//.CenterParent;

            return(uctWnd);
        }
Exemplo n.º 3
0
        //────────────────────────────────────────

        protected void Execute6_Sub(
            Log_Reports log_Reports
            )
        {
            Log_Method log_Method = new Log_MethodImpl(0, Log_ReportsImpl.BDebugmode_Static);

            log_Method.BeginMethod(Info_Functions.Name_Library, this, "Execute6_Sub", log_Reports);

            string sFncName0;

            this.TrySelectAttribute(out sFncName0, PmNames.S_NAME.Name_Pm, EnumHitcount.One_Or_Zero, log_Reports);

            if (log_Reports.CanStopwatch)
            {
                log_Method.Log_Stopwatch.Message = "Nアクション[" + sFncName0 + "]実行";
                log_Method.Log_Stopwatch.Begin();
            }

            //
            //
            //
            // コントロール
            //
            //
            //
            List <Usercontrol> list_FcUc;

            if (log_Reports.Successful)
            {
                // 正常時

                Expression_Node_String ec_ArgFcName;
                this.TrySelectAttribute(out ec_ArgFcName, Expression_Node_Function31Impl.PM_NAME_CONTROL, EnumHitcount.One_Or_Zero, log_Reports);

                list_FcUc = this.Owner_MemoryApplication.MemoryForms.GetUsercontrolsByName(
                    ec_ArgFcName,
                    true,
                    log_Reports
                    );
            }
            else
            {
                list_FcUc = new List <Usercontrol>();
            }

            if (log_Reports.Successful)
            {
                // 正常時
                Usercontrol uct = list_FcUc[0];

                if (uct is UsercontrolWindow)
                {
                    UsercontrolWindow uctWnd = (UsercontrolWindow)uct;

                    // ウィンドウを閉じます。
                    uctWnd.Close(
                        log_Reports
                        );
                }

                // 子コントロールのゴミは残る?
                uct.Destruct(
                    log_Reports
                    );
            }


            log_Method.EndMethod(log_Reports);

            //if (log_Reports.Successful)
            //{
            //    //essageBox.Show(this.GetType().Name + "#: アクションのtype=[" + this.Type + "]", "デバッグ中です。(アクション「" + this.Type + "」として指定されています)");

            //}
        }