コード例 #1
0
        //────────────────────────────────────────

        public Usercontrol Perform(
            Expression_Node_StringImpl ec_FcName,
            MemoryApplication owner_MemoryApplication
            )
        {
            //
            // ▲▲▲ ※暫定で テキストボックス
            //
            UsercontrolTextbox uctTxt = new UsercontrolTextbox();

            // 名前だけ初期設定
            uctTxt.Expression_Name_Control = ec_FcName;
            uctTxt.ControlCommon.Owner_MemoryApplication = owner_MemoryApplication;

            return(uctTxt);
        }
コード例 #2
0
        //────────────────────────────────────────

        public Usercontrol Perform(
            Expression_Node_StringImpl ec_FcName,
            MemoryApplication owner_MemoryApplication
            )
        {
            //
            // 既に起動されているウィンドウに、パネルを埋め込む指定です。
            //

            UsercontrolTextbox uctTxt = new UsercontrolTextbox();

            // 名前だけ初期設定
            uctTxt.Expression_Name_Control = ec_FcName;
            uctTxt.ControlCommon.Owner_MemoryApplication = owner_MemoryApplication;

            return(uctTxt);
        }
コード例 #3
0
        //────────────────────────────────────────

        /// <summary>
        /// クリアー
        /// </summary>
        public void Clear()
        {
            // リストボックス
            {
                UsercontrolListbox uctLst = (UsercontrolListbox)this.UctlstNameProject;
                uctLst.ControlCommon.BAutomaticinputting = true;
                uctLst.Clear();
                uctLst.ControlCommon.BAutomaticinputting = false;
            }

            UsercontrolTextbox uctTxt = (UsercontrolTextbox)this.PctxtFpathProjectcnf;

            uctTxt.ControlCommon.BAutomaticinputting = true;
            uctTxt.Clear();
            uctTxt.ControlCommon.BAutomaticinputting = false;

            this.pctxtInformation.Text = "";
        }
コード例 #4
0
        //────────────────────────────────────────

        public Usercontrol Perform(
            Expression_Node_StringImpl ec_FcName,
            MemoryApplication owner_MemoryApplication
            )
        {
            UsercontrolTextbox uctTxt = new UsercontrolTextbox();

            // 名前だけ初期設定
            uctTxt.Expression_Name_Control = ec_FcName;
            uctTxt.ControlCommon.Owner_MemoryApplication = owner_MemoryApplication;

            //
            // 複数行入力のテキストボックスに設定することで、
            // テキストエリアになります。
            //
            uctTxt.Multiline             = true;
            uctTxt.UsercontrolScrollbars = ScrollBars.Both;

            return(uctTxt);
        }
コード例 #5
0
        //────────────────────────────────────────

        /// <summary>
        /// 項目の置換
        ///
        /// 現在選択されているアイテムを、テキストボックスに入力されているテキストに置換します。
        /// 置換に成功した場合、テキストボックスは空になります。
        /// </summary>
        /// <param name="textBox"></param>
        /// <returns>追加が成功していれば真、失敗していれば偽。</returns>
        public List <ReplacesResultImpl> ReplaceItemFromTextbox(UsercontrolTextbox uctTxt)
        {
            return(this.ReplaceItemFromTextbox(new TextboxWrapperImpl(uctTxt)));
        }
コード例 #6
0
        //────────────────────────────────────────

        /// <summary>
        /// 項目の追加
        ///
        /// テキストボックスに入力されているテキストを、リストの項目として追加します。
        /// 現在選択されているアイテムの上に挿入されます。
        /// 追加に成功した場合、テキストボックスは空になります。
        /// </summary>
        /// <param name="textBox"></param>
        /// <returns>追加が成功していれば真、失敗していれば偽。</returns>
        public bool AddBeforeFromTextbox(UsercontrolTextbox uctTxt)
        {
            return(this.AddBeforeFromTextbox(new TextboxWrapperImpl(uctTxt)));
        }
コード例 #7
0
        //────────────────────────────────────────

        /// <summary>
        /// @Deprecated 使ってない?
        ///
        /// リストボックスで、プロジェクト名を変更したとき。
        /// 旧名:projectNameDdl_SelectedIndexChanged
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void On_ProjectNameDdl_SelectedIndexChanged(object sender, EventArgs e)
        {
            Log_Method  pg_Method       = new Log_MethodImpl(0);
            Log_Reports d_Logging_Click = new Log_ReportsImpl(pg_Method);

            pg_Method.BeginMethod(Info_Toolwindow.Name_Library, this, "projectNameDdl_SelectedIndexChanged", d_Logging_Click);
            //
            //

            // 選択プロジェクト名:取得
            string sSelectedProjectName = (string)((UsercontrolListbox)this.UctlstNameProject).SelectedItem;

            // 選択プロジェクト名:セット
            this.Owner_MemoryApplication.MemoryForms.MemoryAatoolxmlDialog.Name_SelectedEditor = sSelectedProjectName;

            // エディター設定ファイルへのパス
            this.PctxtFpathProjectcnf.Text = "";



            // 内容をデバッグ出力
            //this.MemoryAatoolxmlDialog.MoToolConfig.Projects.DebugWrite();


            MemoryAatoolxml_Editor moAatoolxml_SelectedEditor;

            if (this.Owner_MemoryApplication.MemoryForms.MemoryAatoolxmlDialog.MemoryAatoolxml.Dictionary_Editor.Dictionary_Item.ContainsKey(sSelectedProjectName))
            {
                moAatoolxml_SelectedEditor = this.Owner_MemoryApplication.MemoryForms.MemoryAatoolxmlDialog.MemoryAatoolxml.Dictionary_Editor.GetEditorByName(
                    sSelectedProjectName, true, d_Logging_Click);
                if (!d_Logging_Click.Successful)
                {
                    // 既エラー。
                    goto gt_EndMethod;
                }

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

                    moAatoolxml_SelectedEditor.Dictionary_Fsetvar_Configurationtree.List_Child.ForEach(delegate(Configurationtree_Node s_Fsetvar, ref bool bBreak)
                    {
                        string sNamevar;
                        s_Fsetvar.Dictionary_Attribute.TryGetValue(PmNames.S_NAME_VAR, out sNamevar, true, d_Logging_Click);

                        string sValue;
                        s_Fsetvar.Dictionary_Attribute.TryGetValue(PmNames.S_VALUE, out sValue, true, d_Logging_Click);

                        if (sNamevar == NamesVar.S_SP_EDITOR)
                        {
                            UsercontrolTextbox uctTxt = (UsercontrolTextbox)this.PctxtFpathProjectcnf;
                            uctTxt.ControlCommon.BAutomaticinputting = true;
                            uctTxt.Text = sValue + System.IO.Path.DirectorySeparatorChar + NamesFile.S_AA_EDITOR_XML;
                            uctTxt.ControlCommon.BAutomaticinputting = false;
                        }
                    });
                }
            }
            else
            {
                // 異常時
                goto gt_Error_NotFoundProjectname;
            }
            //.WriteLine(this.GetType().Name + "#projectNameComboBoxUc_SelectedIndexChanged: selectedProjectName=[" + selectedProjectName + "] this.ProjectConfigFilePathTextBoxUc.Text=[" + this.ProjectConfigFilePathTxt.Text + "]");



            //// 更新を確定します。
            //bool commit = true;



            //// 内容をデバッグ出力
            //.WriteLine(this.GetType().Name + "#projectConfigFilePathTxt_FoTextChanged: (1)");
            //this.MemoryAatoolxmlDialog.MoToolConfig.Projects.DebugWrite();



            //
            // 『project-config』ファイルの存在の有無を確認したい。
            //


            //// 内容をデバッグ出力
            //.WriteLine(this.GetType().Name + "#projectConfigFilePathTxt_FoTextChanged: (2)");
            //this.MemoryAatoolxmlDialog.MoToolConfig.Projects.DebugWrite();



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

            //    if (commit)
            //    {
            //        // 『project-config.xml』ファイルの存在の有無を確認したい。
            //        Flow0010 flow0010 = new Flow0010();
            //        string projectConfigXmlAbsFilePath = flow0010.GetFileAbsPath(
            //            this.ProjectConfigFilePathTxt.Text,
            //            false,//取得できなくてもエラーとしない。
            //            pg_Logging,
            //            "*projectConfigFilePathTextBoxUc_FoTextChanged(3)"
            //            );

            //        if ("" == projectConfigXmlAbsFilePath)
            //        {
            //            // 『project-config』の絶対ファイルパスを取得できなかったとき。

            //            WarningReport dReport = new WarningReportImpl();
            //            dReport.Title = "▲エラー21!(Toolwindow)";

            //            StringBuilder txt = new StringBuilder();
            //            txt.Append("(1)『project-config』ファイルへのパスがテキストボックスに入力されていませんでした。");
            //            txt.Append(Environment.NewLine);
            //            txt.Append("  ツール設定ファイルの プロジェクト要素の内容を確かめてみてください。");
            //            txt.Append(Environment.NewLine);
            //            txt.Append(Environment.NewLine);
            //            txt.Append(this.GetType().Name);
            //            txt.Append("#projectConfigFilePathTextBoxUc_FoTextChanged:");
            //            txt.Append(Environment.NewLine);
            //            txt.Append(" テキストボックス値=[" + this.ProjectConfigFilePathTxt.Text + "]");
            //            dReport.Message = txt.ToString();

            //            pg_Logging.Add(dReport);
            //            //.WriteLine( txt.ToString() );

            //        }
            //        else
            //        {
            //            // 『project-config』の絶対ファイルパスを取得できたとき。


            //            // ツール設定ファイルの存在の有無を確認したい。
            //            string toolConfigXmlAbsFilePath = flow0010.GetFileAbsPath(
            //                ModelOfToolConfigImpl.TOOL_CONFIG_REL_FILE_PATH,
            //                false,//取得できなくてもエラーとしない。
            //                pg_Logging,
            //                "*projectConfigFilePathTextBoxUc_FoTextChanged(4)"
            //                );

            //            if ("" == toolConfigXmlAbsFilePath)
            //            {
            //                // ツール設定ファイルの絶対ファイルパスを取得できなかったとき。

            //                //.WriteLine(this.GetType().Name + "#projectConfigFilePathTextBoxUc_FoTextChanged: (2)ツール設定ファイルへのパスが取得できなかったので、変更をツール設定ファイルに保存しません。");
            //            }
            //            else
            //            {
            //                // ツール設定ファイルの絶対ファイルパスを取得できたとき。

            //                // TODO ツール設定ファイルに、『project-config.xml』の絶対パスを保存したい。

            //                //
            //                // 外部ファイルに変更を保存します。
            //                //
            //                //if (!this.ProjectConfigFilePathTxt.ControlCommon.BAutomaticinputting)
            //                //{
            //                //    // 自動入力でない場合。

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

            //                //        // 『SRSグローバルリスト マージツール設定』の保存
            //                //        WriterOfToolConfig writer1 = new WriterOfToolConfig();
            //                //        writer1.Write(
            //                //            toolConfigXmlAbsFilePath,//ここは『ツール設定ファイル』が正しい。
            //                //            this.MemoryAatoolxmlDialog.ApplicationName,
            //                //            this.MemoryAatoolxmlDialog.MoToolConfig.Projects,
            //                //            pg_Logging,
            //                //            "*projectConfigFilePathTextBoxUc_FoTextChanged(5)"
            //                //            );

            //                //        // 現在のフォーム入力値は保存データと一致します。
            //                //        //TODO modelOfFormOfTcd.InvalidInput = false;
            //                //    }
            //                //}
            //            }

            //        }


            //    }
            //    else
            //    {
            //        // 現在のフォーム入力値は保存データと一致しない可能性があります。
            //        //this.MemoryAatoolxmlDialog.InvalidInput = true;
            //    }
            //}


            goto gt_EndMethod;
            //
            //
            #region 異常系
            //────────────────────────────────────────
gt_Error_NotFoundProjectname:
            if (d_Logging_Click.CanCreateReport)
            {
                Log_RecordReports r = d_Logging_Click.BeginCreateReport(EnumReport.Error);
                r.SetTitle("▲エラー902!", pg_Method);

                StringBuilder t = new StringBuilder();
                t.Append("プロジェクト名[" + sSelectedProjectName + "]を選択しましたが、");
                t.Append(Environment.NewLine);
                t.Append("そのプロジェクト名は 登録されていないものでした。");
                r.Message = t.ToString();
                d_Logging_Click.EndCreateReport();
            }
            goto gt_EndMethod;
            //────────────────────────────────────────
            #endregion
            //
            //
gt_EndMethod:
            pg_Method.EndMethod(d_Logging_Click);
            d_Logging_Click.EndLogging(pg_Method);
        }
コード例 #8
0
 public TextboxWrapperImpl(UsercontrolTextbox uctTxt)
 {
     this.usercontrolTextbox2 = uctTxt;
 }