本文整理汇总了C#中EventArgs.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# EventArgs.ToString方法的具体用法?C# EventArgs.ToString怎么用?C# EventArgs.ToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventArgs
的用法示例。
在下文中一共展示了EventArgs.ToString方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btnGenearate_Click
protected void btnGenearate_Click(object sender, EventArgs e)
{
FormSaleBLL saleBLL = new FormSaleBLL();
FormDS.FormDataTable tbForm = null;
string FormNoStr = this.txtFormNo.Text;
if (!string.IsNullOrEmpty(FormNoStr)) {
string[] FormNos = FormNoStr.Split(',');
if (FormNos.Length > 0) {
foreach (string FormNo in FormNos) {
tbForm = saleBLL.GetDataByFormNo(FormNo);
if (tbForm != null && tbForm.Count > 0) {
try {
saleBLL.GenerateSettlement(tbForm[0].FormID);
this.lblError.Text += "申请单"+FormNo+ "生成结案单成功,结案单号为<br />";
} catch (Exception) {
this.lblError.Text+=e.ToString()+"<br />";
throw;
}
}
}
}
}
}
示例2: btn1_onclick2
void btn1_onclick2(object sender, EventArgs e)
{
Console.WriteLine(String.Format("Sender: {0} - Event: {1}", sender.ToString(), e.ToString()));
}
示例3: btn1_onclick
void btn1_onclick(object sender, EventArgs e)
{
Text = "Sender: " + sender.ToString() + " - Event: " + e.ToString();
}
示例4: Test4
public int Test4(object sender, EventArgs e)
{
Console.WriteLine("Int value return EventArgs is {0}: ", e.ToString());
return 1;
}
示例5: Test3
private void Test3(object sender, EventArgs e)
{
Console.WriteLine("Static EventArgs is {0}: ", e.ToString());
}
示例6: TheCalendar_SelectionChanged
public void TheCalendar_SelectionChanged(object sender, EventArgs e)
{
String s = e.ToString();
}
示例7: Handler
protected void Handler(object sender, EventArgs e)
{
ListBox1.Items.Add(((Control)sender).GetType().Name + " " + e.ToString());
}
示例8: btnSavePaymentInfo_Click
protected void btnSavePaymentInfo_Click(object sender, EventArgs e)
{
DateTime PaymentDate = DateTime.MinValue;
decimal PaymentAmount = decimal.Zero;
if (!string.IsNullOrEmpty(ucPaymentDate.SelectedDate)) {
DateTime.TryParse(ucPaymentDate.SelectedDate, out PaymentDate);
}
if (PaymentDate == DateTime.MinValue) {
PageUtility.ShowModelDlg(this, "֧��������д����ȷ��");
return;
}
try {
SalesReimburseBLL.UpdateFormReimburseForRealPaymentInfo(int.Parse(this.ViewState["ObjectId"].ToString()), PaymentDate);
} catch (Exception) {
PageUtility.ShowModelDlg(this, e.ToString());
throw;
}
if (this.Request["Source"] != null) {
this.Response.Redirect(this.Request["Source"].ToString());
} else {
this.Response.Redirect("~/Home.aspx");
}
}
示例9: gvMain_DataBound
protected void gvMain_DataBound(object sender, EventArgs e)
{
try
{
//Literal litPageInfo = gvMain.TopPagerRow.FindControl("litPageInfo") as Literal;
//if (litPageInfo != null) litPageInfo.Text = string.Format(Resources.Message.PagingInfo, gvMain.PageIndex + 1, gvMain.PageCount, HttpContext.Current.Items["rowCount"]);
List<Exchangepartheader> listEph = (new ExchangePartHeaderDataSource()).Select(fromDate, toDate, status, ddlDealer.SelectedValue);
if (listEph.Count > 0)
{
long TotalQuantity = 0;
long TotalPartCost = 0;
long TotalHireCost = 0;
long TotalTotal = 0;
foreach (Exchangepartheader eph in listEph)
{
List<Exchangepartdetail> listEpd = ExchangeVoucherBO.GetExPartDetailByExPartHeader(eph);
long Total = 0;
if (listEpd.Count > 0)
{
long Quantity = 0;
long PartCost = 0;
Total = 0;
foreach (Exchangepartdetail epd in listEpd)
{
Quantity = Quantity + epd.Partqtym;
PartCost = PartCost + (long)epd.Partqtym * epd.Unitpricem;
}
TotalQuantity = TotalQuantity + Quantity;
TotalPartCost = TotalPartCost + PartCost;
Total = PartCost + eph.Feeamount;
}
TotalHireCost = TotalHireCost + eph.Feeamount;
TotalTotal = TotalTotal + Total;
}
Literal litTotalQuantity = gvMain.FooterRow.FindControl("litTotalQuantity") as Literal;
if (litTotalQuantity != null) litTotalQuantity.Text = NumberFormatHelper.NumberToCurentMoneyFormatString(TotalQuantity);
Literal litTotalPartCost = gvMain.FooterRow.FindControl("litTotalPartCost") as Literal;
if (litTotalPartCost != null) litTotalPartCost.Text = NumberFormatHelper.NumberToCurentMoneyFormatString(TotalPartCost);
Literal litTotalHireCost = gvMain.FooterRow.FindControl("litTotalHireCost") as Literal;
if (litTotalHireCost != null) litTotalHireCost.Text = NumberFormatHelper.NumberToCurentMoneyFormatString(TotalHireCost);
Literal litTotalTotal = gvMain.FooterRow.FindControl("litTotalTotal") as Literal;
if (litTotalTotal != null) litTotalTotal.Text = NumberFormatHelper.NumberToCurentMoneyFormatString(TotalTotal);
}
}
catch
{
bllMessage.Items.Add(e.ToString());
}
}