当前位置: 首页>>代码示例>>C#>>正文


C# EventArgs.ToString方法代码示例

本文整理汇总了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;
                        }
                    }
                }
            }
        }
    }
开发者ID:hijoy,项目名称:CPL_ERS,代码行数:24,代码来源:SpecialSystemPage.aspx.cs

示例2: btn1_onclick2

 void btn1_onclick2(object sender, EventArgs e)
 {
     Console.WriteLine(String.Format("Sender: {0} - Event: {1}", sender.ToString(), e.ToString()));
 }
开发者ID:dbremner,项目名称:hycs,代码行数:4,代码来源:clickme.cs

示例3: btn1_onclick

 void btn1_onclick(object sender, EventArgs e)
 {
     Text = "Sender: " + sender.ToString() + " - Event: " + e.ToString();
 }
开发者ID:dbremner,项目名称:hycs,代码行数:4,代码来源:clickme.cs

示例4: Test4

 public int Test4(object sender, EventArgs e)
 {
     Console.WriteLine("Int value return EventArgs is {0}: ", e.ToString());
     return 1;
 }
开发者ID:CheneyWu,项目名称:coreclr,代码行数:5,代码来源:eventhandlerinvoke.cs

示例5: Test3

 private void Test3(object sender, EventArgs e)
 {
     Console.WriteLine("Static EventArgs is {0}: ", e.ToString());
 }
开发者ID:CheneyWu,项目名称:coreclr,代码行数:4,代码来源:eventhandlerinvoke.cs

示例6: TheCalendar_SelectionChanged

 public void TheCalendar_SelectionChanged(object sender, EventArgs e)
 {
     String s = e.ToString();
 }
开发者ID:codehub,项目名称:839275,代码行数:4,代码来源:TestCalendar.aspx.cs

示例7: Handler

 protected void Handler(object sender, EventArgs e)
 {
     ListBox1.Items.Add(((Control)sender).GetType().Name + "  " + e.ToString());
 }
开发者ID:naynishchaughule,项目名称:ASP.NET,代码行数:4,代码来源:FirstApp.aspx.cs

示例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");
     }
 }
开发者ID:hijoy,项目名称:VSL_ERS,代码行数:23,代码来源:ReimburseMoneyApproval.aspx.cs

示例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());
        }
    }
开发者ID:thaond,项目名称:vdms-sym-project,代码行数:55,代码来源:ExchangeVoucher.aspx.cs


注:本文中的EventArgs.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。