Example #1
0
 /// <summary>
 /// 使う前に、実装インスタンスを設定してください。
 /// </summary>
 /// <param oVariableName="nActionCollection"></param>
 public void InitializeBeforeUse(
     Mainwnd_FormWrapping mainwnd_FormWrapping,
     ConfigurationtreeToFunction gcavToFunc,
     Form_Toolwindow form_Toolwindow,
     MemoryAatoolxmlDialog moAatoolxmlDialog,
     UsercontrolStyleSetter ucontrolStyleSetter,
     UsercontrolCreator1 ucontrolCreator1,
     XToMemory_Form xToM_FormImpl
     )
 {
     this.MemoryForms.InitializeBeforeUse(
         mainwnd_FormWrapping,
         gcavToFunc,
         form_Toolwindow,
         moAatoolxmlDialog,
         ucontrolStyleSetter,
         ucontrolCreator1,
         xToM_FormImpl
         );
 }
Example #2
0
 /// <summary>
 /// 使う前に、実装インスタンスを設定してください。
 /// </summary>
 /// <param oVariableName="nActionCollection"></param>
 public void InitializeBeforeUse(
     Mainwnd_FormWrapping mainwnd_FormWrapping,
     ConfigurationtreeToFunction gcavToFunc,
     Form_Toolwindow form_Toolwindow,
     MemoryAatoolxmlDialog moAatoolxmlDialog,
     UsercontrolStyleSetter ucontrolStyleSetter,
     UsercontrolCreator1 ucontrolCreator1,
     XToMemory_Form xToM_FormImpl
     )
 {
     this.MemoryForms.InitializeBeforeUse(
         mainwnd_FormWrapping,
         gcavToFunc,
         form_Toolwindow,
         moAatoolxmlDialog,
         ucontrolStyleSetter,
         ucontrolCreator1,
         xToM_FormImpl
         );
 }
Example #3
0
        public void InitializeBeforeUse(
            Mainwnd_FormWrapping mainwnd_FormWrapping,
            ConfigurationtreeToFunction gcavToFunc,
            Form_Toolwindow form_Toolwindow,
            MemoryAatoolxmlDialog moAatoolxmlDialog,
            UsercontrolStyleSetter ucontrolStyleSetter,
            UsercontrolCreator1 ucontrolCreator1,
            XToMemory_Form xToM_FormImpl
            )
        {
            this.Mainwnd_FormWrapping = mainwnd_FormWrapping;
            this.givechapterandverseToFunction = gcavToFunc;
            this.ucontrolCreator1 = ucontrolCreator1;
            this.xToMemory_Form = xToM_FormImpl;

            this.form_Toolwindow = form_Toolwindow;
            //this.form_Toolwindow.InitializeBeforeUse(owner_MemoryApplication);
            this.moAatoolxmlDialog = moAatoolxmlDialog;

            this.ucontrolStyleSetter = ucontrolStyleSetter;
        }
Example #4
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        /// <summary>
        /// アクション実行。
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public override string Execute5_Main(Log_Reports log_Reports)
        {
            //(1)メソッド開始
            Log_Method log_Method = new Log_MethodImpl(0);

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

            if (this.EnumEventhandler == EnumEventhandler.O_Ea)
            {
                string sConfigStack_ThisMethod       = "<" + log_Method.Fullname + ":>";
                Configurationtree_Node cf_ThisMethod = new Configurationtree_NodeImpl(sConfigStack_ThisMethod, null);


                //(2)独自実装のモデルをセットアップするタイミング。
                this.On_P2_NewModelSetup(log_Reports);


                //(3).exeのファイルパス
                string sFpath_Startup = Application.StartupPath;


                //(4)[F8]キーを押すと、「ツール設定ダイアログ」が開くようにします。
                {
                    Expression_Node_Function expr_Func = Collection_Function.NewFunction2(
                        Expression_Node_Function21Impl.NAME_FUNCTION,
                        this,
                        this.Cur_Configuration,
                        this.Owner_MemoryApplication,
                        log_Reports
                        );

                    this.Owner_MemoryApplication.MemoryForms.Mainwnd_FormWrapping.Form.KeyDown += new System.Windows.Forms.KeyEventHandler(((Expression_Node_FunctionImpl)expr_Func).Execute4_OnKey);
                }


                //(5)『ツール設定ファイル』読取。
                {
                    this.Owner_MemoryApplication.MemoryAatoolxml.P101_LoadAatoolxml(cf_ThisMethod, log_Reports);
                }


                //(6)『ツール設定ダイアログ』の初期設定。
                if (log_Reports.Successful)
                {
                    this.Owner_MemoryApplication.MemoryForms.Form_Toolwindow.Clear();

                    this.Owner_MemoryApplication.MemoryForms.Form_Toolwindow.InitializeBeforeUse(
                        this.Owner_MemoryApplication
                        );


                    // 「プロジェクト選択時」のイベントハンドラとして登録。
                    Expression_Node_Function expr_Func = this.Functionitem_OnProjectSelected.NewInstance(
                        this.Parent_Expression,
                        this.Cur_Configuration,
                        //EnumEventhandler.Unknown,
                        this.Owner_MemoryApplication,
                        log_Reports
                        );
                    //expr_Func.InitializeBeforeUse(this.Owner_MemoryApplication);
                    this.Owner_MemoryApplication.MemoryForms.Form_Toolwindow.OnEditorSelected += expr_Func.Execute4_OnEditorSelected;
                }


                //(7)「プロジェクト選択時」のイベントハンドラーを実行。(アプリケーション起動1回目)
                if (log_Reports.Successful)
                {
                    this.Functionitem_OnProjectSelected.Execute4_OnEditorSelected(
                        this.Functionparameterset.Sender, null, false, log_Reports);
                }



                //(8)タイトル
                if (log_Reports.Successful)
                {
                    // タイトルは、外部ファイルで記述します。

                    // mainWnd は、UcWindow ではなく UcPanel です。UsercontrolTextに設定しても、ウィンドウのタイトルは変わりません。
                    // mainWnd は特殊な方法で取得します。
                    Mainwnd_FormWrapping mainwnd_FormWrapping = this.Owner_MemoryApplication.MemoryForms.Mainwnd_FormWrapping;
                    mainwnd_FormWrapping.ControlCommon.BAutomaticinputting = true;

                    StringBuilder sb;
                    {
                        sb = new StringBuilder();

                        // エディター設定ファイルに記載されているエディターの表示タイトル。
                        sb.Append(this.Owner_MemoryApplication.MemoryVariables.GetStringByVariablename(
                                      new Expression_Leaf_StringImpl(NamesVar.S_SS_TITLE_EDITOR, null, new Configurationtree_NodeImpl(log_Method.Fullname, null)),
                                      false, log_Reports));

                        // レイアウト・テーブルに記載されているエディター名。
                        sb.Append(mainwnd_FormWrapping.UsercontrolText);

                        // 自動で付加。
                        sb.Append(" [CSVE×E " + ValuesAttr.S_VERSION_CSVEXE + "(code " + ValuesAttr.S_VERSION_CODEFILE + ")] - Xenontools (※[F8]キーでツール窓)");

                        mainwnd_FormWrapping.UsercontrolText = sb.ToString();
                    }

                    mainwnd_FormWrapping.ControlCommon.BAutomaticinputting = false;
                }
            }


            //(10)メソッド終了
            log_Method.EndMethod(log_Reports);
            return("");
        }