本文整理汇总了C#中Log_Reports类的典型用法代码示例。如果您正苦于以下问题:C# Log_Reports类的具体用法?C# Log_Reports怎么用?C# Log_Reports使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Log_Reports类属于命名空间,在下文中一共展示了Log_Reports类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
示例2: 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;
}
示例3: 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 "";
}
示例4: 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 "";
}
示例5: 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);
}
示例6: 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 "";
}
示例7: 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);
}
示例8: CopyTo
//────────────────────────────────────────
/// <summary>
/// リスト・ビュー1の内容を、リスト・ビュー2へ、コピーします。
/// </summary>
/// <param name="listView"></param>
/// <param name="listView"></param>
public void CopyTo(ListView listView1, ListView listView2, Log_Reports log_Reports)
{
// リスト・ビュー2を空にします。
listView2.Clear();
// 編集テーブルを、並び順変更先テーブルにコピーします。
foreach (ColumnHeader columnHeader in listView1.Columns)
{
listView2.Columns.Add(columnHeader.Text);
}
foreach (ListViewItem listViewItem in listView1.Items)
{
// [0]列目を初期値として設定します。
ListViewItem newItem = new ListViewItem(listViewItem.Text);
// 最初の[0]列目は既に追加済みなので、[1]列目以降から追加します。
for (int nIndex = 1; nIndex < listViewItem.SubItems.Count; nIndex++)
{
newItem.SubItems.Add(listViewItem.SubItems[nIndex]);
}
listView2.Items.Add(newItem);
}
goto gt_EndMethod;
//
gt_EndMethod:
;
}
示例9: P4_Save
//────────────────────────────────────────
/// <summary>
/// レコードセットを、一時記憶。
/// </summary>
/// <param name="p3_RecordSet"></param>
/// <param name="RecordSetSaveTo_or_null"></param>
/// <param name="log_Reports"></param>
public void P4_Save(
RecordSet recordSet_toSave,
Expressionv_4ASelectRecord ecvRequest_SelRec_OrNull,//where
Log_Reports log_Reports
)
{
if (null != ecvRequest_SelRec_OrNull)
{
//
// "RECORD_SAVE_TO:FC_mr_skillLst_001" といった、名前。
string sStorage = ecvRequest_SelRec_OrNull.Expression_Storage.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports);
if ("" != sStorage.Trim())
{
//
// 内容のコピー。
//p3_Selectstatement.NFld = nRequest_saveTo_orNull.NField;
//p3_Selectstatement.NLookupValue = nRequest_saveTo_orNull.NLookupValue;
//p3_Selectstatement.NRequired = nRequest_saveTo_orNull.NRequired;
//p3_Selectstatement.NFrom = nRequest_saveTo_orNull.NFrom;
//p3_Selectstatement.NStorage = nRequest_saveTo_orNull.NStorage;
//p3_Selectstatement.NDescription = nRequest_saveTo_orNull.NDescription;
//
// レコードセットを一時記憶。
this.Owner_MemoryApplication.MemoryRecordset.RecordsetStorage.Add(
ecvRequest_SelRec_OrNull.Expression_Storage,
recordSet_toSave,// p3_Selectstatement,
this.Owner_MemoryApplication,
log_Reports);
}
}
}
示例10: 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;
}
示例11: 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);
}
示例12: Add
//────────────────────────────────────────
/// <summary>
/// 追加。
/// </summary>
public void Add(
Configurationtree_Node cur_Conf,
Log_Reports log_Reports
)
{
this.list_Configurationtree_Node.Add(cur_Conf);
}
示例13: Translate_Step2
//────────────────────────────────────────
public override void Translate_Step2(
ConfigurationtreeToFunction_Item parentProcesser,
Configurationtree_Node action_Conf,
Expression_Node_Function parent_Expr_Func,//todo:何これ?
MemoryApplication owner_MemoryApplication,
Log_TextIndented_ConfigurationtreeToExpression pg_ParsingLog,
Log_Reports log_Reports
)
{
Expression_Node_String ec_ArgListboxName;
parent_Expr_Func.TrySelectAttribute(out ec_ArgListboxName, Expression_Node_Function20Impl.PM_NAME_CONTROL_LISTBOX, EnumHitcount.One_Or_Zero, log_Reports);
if ("" == ec_ArgListboxName.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports))
{
// 引数 listboxFcName が指定されていない場合は、その記述が書かれているコントロールの名前を入れる。
Configuration_Node cf_Event = action_Conf.GetParentByNodename(
NamesNode.S_EVENT, EnumConfiguration.Unknown, true, log_Reports);
if (log_Reports.Successful)
{
Configuration_Node parent_Configurationtree_Control = cf_Event.GetParentByNodename(
NamesNode.S_CONTROL1, EnumConfiguration.Tree, true, log_Reports);
string sName_Usercontrol;
((Configurationtree_Node)parent_Configurationtree_Control).Dictionary_Attribute.TryGetValue(PmNames.S_NAME, out sName_Usercontrol, true, log_Reports);
ec_ArgListboxName.AppendTextNode(sName_Usercontrol, action_Conf, log_Reports);
}
}
}
示例14: 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;
}
示例15: 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 "";
}