本文整理汇总了C#中Xenon.Syntax.Log_MethodImpl.BeginMethod方法的典型用法代码示例。如果您正苦于以下问题:C# Log_MethodImpl.BeginMethod方法的具体用法?C# Log_MethodImpl.BeginMethod怎么用?C# Log_MethodImpl.BeginMethod使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Xenon.Syntax.Log_MethodImpl
的用法示例。
在下文中一共展示了Log_MethodImpl.BeginMethod方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateMessage_Debug
//────────────────────────────────────────
/// <summary>
/// 内容をデバッグ出力します。
/// </summary>
public void CreateMessage_Debug(Log_Reports log_Reports)
{
Log_Method log_Method = new Log_MethodImpl(0);
Log_Reports d_Logging_Dammy = new Log_ReportsImpl(log_Method);
log_Method.BeginMethod(Info_MiddleImpl.Name_Library, this, "CreateMessage_Debug",d_Logging_Dammy);
//
//
//ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: 【デバッグ出力】 project要素の個数=[" + this.Items.Count + "]");
foreach (MemoryAatoolxml_Editor aatool_Editor in this.Dictionary_Item.Values)
{
//ystem.Console.WriteLine(this.GetType().Name + "#DebugWrite: 【デバッグ出力】 project名=[" + st_Project.Name + "]");
aatool_Editor.WriteDebug_ToConsole(aatool_Editor.Dictionary_Fsetvar_Configurationtree, log_Reports);
}
//
//
d_Logging_Dammy.EndCreateReport();
log_Method.EndMethod(d_Logging_Dammy);
if (!d_Logging_Dammy.Successful)
{
log_Method.WriteDebug_ToConsole(d_Logging_Dammy.ToText());
}
}
示例2: Add
//────────────────────────────────────────
/// <summary>
/// 追加。
/// </summary>
/// <param name="nItems"></param>
/// <param name="request"></param>
/// <param name="log_Reports"></param>
public void Add(
Expression_Node_String ec_Child,
Log_Reports log_Reports
)
{
Log_Method log_Method = new Log_MethodImpl(0);
log_Method.BeginMethod(Info_Syntax.Name_Library, this, "Add",log_Reports);
if (ec_Child is Expression_Node_StringImpl)
{
((Expression_Node_StringImpl)ec_Child).Parent_Expression = this.owner_Expression;
}
else if (ec_Child is Expression_Leaf_StringImpl)
{
((Expression_Leaf_StringImpl)ec_Child).Parent_Expression = this.owner_Expression;
}
else if (ec_Child is Expression_TexttemplateP1pImpl)
{
((Expression_TexttemplateP1pImpl)ec_Child).Parent_Expression = this.owner_Expression;
}
else
{
log_Method.WriteWarning_ToConsole(" 想定外のクラス=[" + ec_Child.GetType().Name + "]");
}
this.listExpression_Item.Add(ec_Child);
log_Method.EndMethod(log_Reports);
}
示例3: NewInstance
public override Expression_Node_Function NewInstance(
Expression_Node_String parent_Expression, Configuration_Node cur_Conf,
object owner_MemoryApplication, Log_Reports pg_Logging)
{
Log_Method pg_Method = new Log_MethodImpl(0);
pg_Method.BeginMethod(Info_CSVEditorImpl.Name_Library, this, "NewInstance",pg_Logging);
//
Expression_Node_Function f0 = new Expression_Node_Function_BootCsvEditorExImpl(this.EnumEventhandler,this.List_NameArgumentInitializer,this.Functiontranslatoritem);
f0.Parent_Expression = parent_Expression;
f0.Cur_Configuration = cur_Conf;
((Expression_Node_FunctionAbstract)f0).Owner_MemoryApplication = (MemoryApplication)owner_MemoryApplication;
//関数名初期化
f0.Dictionary_Expression_Attribute.Set(PmNames.S_NAME.Name_Pm, new Expression_Leaf_StringImpl(NAME_FUNCTION, null, cur_Conf), pg_Logging);
//「プロジェクト選択時」のイベントハンドラーを上書き要求。
{
Expression_Node_Function expr_Func2 = Collection_Function.NewFunction2(
Expression_Node_Function_OnEditorSelected_Impl.NAME_FUNCTION,
f0,
cur_Conf,
//EnumEventhandler.Tp_B_Wr_Rhn,
owner_MemoryApplication,
pg_Logging);
((Expression_Node_Function_BootCsvEditorExImpl)f0).Functionitem_OnProjectSelected = expr_Func2;
}
//
pg_Method.EndMethod(pg_Logging);
return f0;
}
示例4: Select
//────────────────────────────────────────
/// <summary>
/// 無条件で、全てのレコードを返す。
/// </summary>
/// <param name="dst_Row"></param>
/// <param name="isRequired_ExpectedValue"></param>
/// <param name="dataTable"></param>
/// <param name="s_ParentNode_query"></param>
/// <param name="log_Reports"></param>
public void Select(
out List<DataRow> out_List_DstRow,
bool isRequired_ExpectedValue,
DataTable dataTable,
Configuration_Node parent_Conf,
Log_Reports log_Reports
)
{
Log_Method log_Method = new Log_MethodImpl();
log_Method.BeginMethod(Info_Table.Name_Library, this, "Select",log_Reports);
//
//
//
//
out_List_DstRow = new List<DataRow>();
foreach (DataRow row in dataTable.Rows)
{
out_List_DstRow.Add(row);
}
goto gt_EndMethod;
//
//
//
//
gt_EndMethod:
log_Method.EndMethod(log_Reports);
}
示例5: ConfigurationtreeToFunction
//────────────────────────────────────────
/// <summary>
/// イベントハンドラーの作成。
/// </summary>
/// <param name="s_Action"></param>
/// <param name="log_Reports"></param>
/// <returns></returns>
public Expression_Node_Function ConfigurationtreeToFunction(
Configurationtree_Node action_Conf,
MemoryApplication owner_MemoryApplication,
Log_Reports log_Reports
)
{
Log_Method log_Method = new Log_MethodImpl(0, Log_ReportsImpl.BDebugmode_Static);
log_Method.BeginMethod(Info_Functions.Name_Library, this, "ConfigurationtreeToFunction",log_Reports);
if (log_Reports.CanStopwatch)
{
log_Method.Log_Stopwatch.Begin();
}
//
Expression_Node_Function expr_Func;
if (log_Reports.Successful)
{
expr_Func = owner_MemoryApplication.MemoryForms.ConfigurationtreeToFunction.Translate(
action_Conf,
true,
log_Reports
);
}
else
{
expr_Func = null;
}
goto gt_EndMethod;
//
gt_EndMethod:
log_Method.EndMethod(log_Reports);
return expr_Func;
}
示例6: Add
//────────────────────────────────────────
/// <summary>
/// グリッド領域を追加します。(エラー対応処理付き)
/// </summary>
/// <param name="gridAreaName"></param>
/// <param name="gridArea"></param>
/// <param name="log_Reports"></param>
public void Add(
string sName_Gridarea,
Grid gridArea,
Log_Reports log_Reports,
string sLogStack
)
{
Log_Method pg_Method = new Log_MethodImpl(0);
pg_Method.BeginMethod(Info_GridPanel.Name_Library, this, "Add",log_Reports);
Exception err_Excp;
try
{
this.Dictionary_Item.Add(sName_Gridarea, gridArea);
}
catch (Exception e)
{
// エラー
err_Excp = e;
goto gt_Error_Exception;
}
goto gt_EndMethod;
//
//
#region 異常系
//────────────────────────────────────────
gt_Error_Exception:
if (log_Reports.CanCreateReport)
{
Log_RecordReports r = log_Reports.BeginCreateReport(EnumReport.Error);
r.SetTitle("▲エラー50404!", pg_Method);
StringBuilder t = new StringBuilder();
t.Append("グリッドパネルの利用");
t.Append(Environment.NewLine);
t.Append(Environment.NewLine);
t.Append("[");
t.Append(sName_Gridarea);
t.Append("]要素の追加時に失敗しました。");
t.Append(Environment.NewLine);
t.Append(Environment.NewLine);
t.Append("エラー:");
t.Append(err_Excp.Message);
t.Append(Environment.NewLine);
t.Append(Environment.NewLine);
t.Append("実行経路ヒント:");
t.Append(sLogStack);
r.Message = t.ToString();
log_Reports.EndCreateReport();
}
goto gt_EndMethod;
//────────────────────────────────────────
#endregion
//
//
gt_EndMethod:
pg_Method.EndMethod(log_Reports);
}
示例7: SelectItemsByPmAsCsv
//────────────────────────────────────────
/// <summary>
/// 例えば ("access",”from”)と指定すれば、
/// 指定リストの要素の中で <~ access=”from,to”> といった属性を持つものはヒットする。
///
/// 選択アイテムをリストから除外するなら bRemove=true にします。
/// </summary>
/// <param name="sName"></param>
/// <param name="sExpectedValue"></param>
/// <param name="request_Items"></param>
/// <param name="log_Reports"></param>
/// <returns></returns>
public static List<Expression_Node_String> SelectItemsByPmAsCsv(
List<Expression_Node_String> ecList_Item, string sPmName, string sExpectedValue,
bool bRemove, EnumHitcount hits, Log_Reports log_Reports)
{
Log_Method pg_Method = new Log_MethodImpl(0);
pg_Method.BeginMethod(Info_Controls.Name_Library, "Util_E_NodeImpl", "SelectItemsByAttrAsCsv",log_Reports);
//
//
//Util_E_NodeImpl dammy_This = new Util_E_NodeImpl();
List<Expression_Node_String> ecList_Result;
ecList_Result = Utility_Expression_NodeImpl.SelectItemsByPmAsCsv_Full_(
ecList_Item,
sPmName,
false,
sExpectedValue,
bRemove,
hits,
log_Reports
);
goto gt_EndMethod;
//
//
gt_EndMethod:
pg_Method.EndMethod(log_Reports);
// 正常終了
return ecList_Result;
}
示例8: Execute5_Main
//────────────────────────────────────────
/// <summary>
/// アクション実行。
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override string Execute5_Main(Log_Reports log_Reports)
{
Log_Method log_Method = new Log_MethodImpl(0, Log_ReportsImpl.BDebugmode_Static);
log_Method.BeginMethod(Info_Functions.Name_Library, this, "Execute5_Main",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 = "「E■[" + sFncName0 + "]アクション」実行(A)";
log_Method.Log_Stopwatch.Begin();
}
//
//
if (this.EnumEventhandler == EnumEventhandler.O_Lr)
{
this.Execute6_Sub(log_Reports);
}
else if (this.EnumEventhandler == EnumEventhandler.O_Ea)
{
this.Execute6_Sub(log_Reports);
}
goto gt_EndMethod;
//
//
gt_EndMethod:
log_Method.EndMethod(log_Reports);
return "";
}
示例9: Execute5_Main
//────────────────────────────────────────
/// <summary>
/// 「ツール設定ウィンドウ」を開きます。
/// </summary>
/// <param name="sender"></param>
/// <param name="eventMonitor"></param>
/// <param name="log_Reports"></param>
public override string Execute5_Main(Log_Reports log_Reports)
{
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_Lr)
{
if (log_Reports.CanStopwatch)
{
string sFncName;
this.TrySelectAttribute(out sFncName, PmNames.S_NAME.Name_Pm, EnumHitcount.One_Or_Zero, log_Reports);
log_Method.Log_Stopwatch.Message = "Nアクション[" + sFncName + "]実行";
log_Method.Log_Stopwatch.Begin();
}
//
//
//
//
// ツール設定モデルを共有します。
this.Owner_MemoryApplication.MemoryForms.MemoryAatoolxmlDialog.MemoryAatoolxml = this.Owner_MemoryApplication.MemoryAatoolxml;
// 「SelectedIndexイベント」を必ず動かすために、リストボックスを空にします。
this.Owner_MemoryApplication.MemoryForms.Form_Toolwindow.Clear();
// ダイアログボックスを出します。
((Form)this.Owner_MemoryApplication.MemoryForms.Form_Toolwindow).ShowDialog(this.Owner_MemoryApplication.MemoryForms.Mainwnd_FormWrapping.Form);
}
log_Method.EndMethod(log_Reports);
return "";
}
示例10: Execute5_Main
//────────────────────────────────────────
/// <summary>
/// アクション実行。
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override string Execute5_Main(Log_Reports log_Reports)
{
Log_Method log_Method = new Log_MethodImpl(0);
log_Method.BeginMethod(Info_Functions.Name_Library, this, "Execute5_Main",log_Reports);
string sFncName0;
this.TrySelectAttribute(out sFncName0, PmNames.S_NAME.Name_Pm, EnumHitcount.One_Or_Zero, log_Reports);
if (this.EnumEventhandler == EnumEventhandler.O_Ea)
{
if (this.Functionparameterset.Sender is Customcontrol)
{
Customcontrol ccFc = (Customcontrol)this.Functionparameterset.Sender;
string sName_Usercontrol = ccFc.ControlCommon.Expression_Name_Control.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports);
log_Reports.Comment_EventCreationMe = "[" + sName_Usercontrol + "]コントロールが、[" + sFncName0 + "]アクションを実行。";
}
else
{
log_Reports.Comment_EventCreationMe = "[" + sFncName0 + "]アクションを実行。";
}
ListBox pcLst = (ListBox)this.Functionparameterset.Sender;
this.Execute6_Sub(pcLst, log_Reports);
}
log_Method.EndMethod(log_Reports);
return "";
}
示例11: Execute5_Main
//────────────────────────────────────────
/// <summary>
/// アクション実行。
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
public override string Execute5_Main(Log_Reports log_Reports)
{
Log_Method log_Method = new Log_MethodImpl(0, Log_ReportsImpl.BDebugmode_Static);
log_Method.BeginMethod(Info_Functions.Name_Library, this, "Execute5_Main",log_Reports);
//
//
if (this.EnumEventhandler == EnumEventhandler.O_Lr)
{
this.Execute6_Sub(
log_Reports
);
}
else if (this.EnumEventhandler == EnumEventhandler.O_Ea)
{
this.Execute6_Sub(
log_Reports
);
}
//
//
log_Method.EndMethod(log_Reports);
return "";
}
示例12: ParseChild_InAnotherLibrary
//────────────────────────────────────────
public static void ParseChild_InAnotherLibrary(
Configurationtree_Node cur_Cf,
Expression_Node_String parent_Expr,//nAcase,nFelemの両方の場合がある。
MemoryApplication memoryApplication,
Log_TextIndented_ConfigurationtreeToExpression pg_ParsingLog,
Log_Reports log_Reports
)
{
Log_Method log_Method = new Log_MethodImpl(0, Log_ReportsImpl.BDebugmode_Static);
log_Method.BeginMethod(Info_ConfigurationtreeToExpression.Name_Library, "SToE_AbstractImpl", "ParseChild_InAnotherLibrary",log_Reports);
ConfigurationtreeToExpression_F14n16 dammy = new ConfigurationtreeToExpression_F14_FncImpl_();//メソッドが使いたいだけなので、何でもいい。
dammy.ParseChild_InConfigurationtreeToExpression(
cur_Cf,
parent_Expr,
memoryApplication,
pg_ParsingLog,
log_Reports
);
goto gt_EndMethod;
//
//
gt_EndMethod:
if (Log_ReportsImpl.BDebugmode_Static)
{
//d_ParsingLog.Decrement(s_Cur.Name_Node);
}
log_Method.EndMethod(log_Reports);
}
示例13: SearchLua
//────────────────────────────────────────
/// <summary>
/// 再帰関数です。
/// </summary>
/// <param name="result">.luaファイルのパスが追加されます。</param>
/// <param name="folderpath"></param>
public void SearchLua(List<string> result, string folderpath, Log_Reports log_Reports)
{
Log_Method log_Method = new Log_MethodImpl();
log_Method.BeginMethod(Info_Actorslist.Name_Library, this, "SearchLua", log_Reports);
if (log_Reports.Successful)
{
if (!Directory.Exists(folderpath))
{
System.Console.WriteLine("SearchLua エラー");
goto gt_Error_Folder;
}
string[] filepaths = Directory.GetFileSystemEntries(folderpath);
foreach (string filepath in filepaths)
{
if (Directory.Exists(filepath))
{
//System.Console.WriteLine("dir=[" + filepath + "]");
this.SearchLua(result, filepath, log_Reports);
}
else
{
Match m1 = this.Regex.Match(filepath);
if (m1.Success)
{
result.Add(filepath);
//System.Console.WriteLine("file=[" + filepath + "]");
}
}
}
}
goto gt_EndMethod;
#region 異常系
//────────────────────────────────────────
gt_Error_Folder:
if (log_Reports.CanCreateReport)
{
Log_RecordReports r = log_Reports.BeginCreateReport(EnumReport.Error);
r.SetTitle("▲エラー13001!", log_Method);
Log_TextIndented s = new Log_TextIndentedImpl();
s.Append("存在するフォルダーを指定してください。");
s.Append(Environment.NewLine);
s.Append(" folderpath=[");
s.Append(folderpath);
s.Append("]");
r.Message = s.ToString();
log_Reports.EndCreateReport();
}
goto gt_EndMethod;
//────────────────────────────────────────
#endregion
gt_EndMethod:
log_Method.EndMethod(log_Reports);
}
示例14: Parse
//────────────────────────────────────────
public XenonStyle Parse(string sText, Log_Reports log_Reports)
{
Log_Method pg_Method = new Log_MethodImpl(0);
pg_Method.BeginMethod(Info_Operating.Name_Library, this, "Parse",log_Reports);
XenonStyle o_Style = new XenonStyleImpl();
string[] properties = sText.Split(';');
foreach (string sProperty in properties)
{
string[] keyValue = sProperty.Split(':');
if (2 <= keyValue.Length)
{
if ("color" == keyValue[0].Trim().ToLower())
{
string sValue = keyValue[1].Trim().ToLower();
ColorResult colorResult = BuilderColor.Parse(keyValue[1].Trim().ToLower(), Color.Black, true);
if (colorResult.BNotFound)
{
// 該当がなければ
// #連続エラー処理
if (log_Reports.CanCreateReport)
{
Log_RecordReports r = log_Reports.BeginCreateReport(EnumReport.Error);
r.SetTitle("▲エラー4301!", pg_Method);
r.Message = "color属性に["+sValue+"]が指定されましたが、対応していない値です。";
log_Reports.EndCreateReport();
}
}
else
{
o_Style.ForeXenonColor = new XenonColorImpl();
o_Style.ForeXenonColor.Color = colorResult.Color;
o_Style.ForeXenonColor.Name_Color = sValue;
}
}
else
{
// 無視
}
}
else
{
// エラー処理
}
}
goto gt_EndMethod;
//
//
gt_EndMethod:
pg_Method.EndMethod(log_Reports);
return o_Style;
}
示例15: P2b_GetStyleName
//────────────────────────────────────────
public override string P2b_GetStyleName(
int nCurIx, CustomcontrolListbox cctLst, Log_Reports pg_Logging
)
{
Log_Method pg_Method = new Log_MethodImpl(0, Log_ReportsImpl.BDebugmode_Static);
pg_Method.BeginMethod(Info_LayoutImpl.Name_Library, this, "P2_GetStyleAttrNames",pg_Logging);
//
//
string sResult;
// 行をセットしたので、取り出されるのも行です。
// DataRowをセットしましたが、取り出されるのは DataRowViewになるようです。
DataRowView row = (DataRowView)cctLst.Items[nCurIx];
// スタイルのNAME値が入っている。
Value_Humaninput valueH = Utility_Row.GetFieldvalue(
NamesFld.S_EXPL_SS,
row.Row,
false,//該当なしも可
pg_Logging,
Info_LayoutImpl.Name_Library+":"+this.GetType().Name+"#P2_:リストボックスのEXPL-SS"
);
if (!pg_Logging.Successful)
{
// 既エラー。
sResult = "";
goto gt_EndMethod;
}
if (pg_Logging.Successful)
{
// 正常時
if (null == valueH)
{
sResult = "";
}
else
{
sResult = ((Value_Humaninput)valueH).Text;
}
}
else
{
sResult = "";
}
goto gt_EndMethod;
//
//
//
//
gt_EndMethod:
pg_Method.EndMethod(pg_Logging);
return sResult;
}