// Title: Building ASP.NET Server Controls
//
// Chapter: 5 - Event-based Programming
// File: TextChanged.cs
// Written by: Dale Michalk and Rob Cameron
//
// Copyright ?2003, Apress L.P.
using System;

namespace ControlsBookLib.Ch05
{
   public delegate void TextChangedEventHandler(object o, TextChangedEventArgs tce);

   public class TextChangedEventArgs : EventArgs
   {
      private string oldValue;
      private string newValue;

      public TextChangedEventArgs(string oldValue, string newValue)
      {
         this.oldValue = oldValue;
         this.newValue = newValue;
      }

      public string OldValue
      {
         get
         {
            return oldValue;
         }
      }

      public string NewValue
      {
         get
         {
            return newValue;
         }
      }
   }
}

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2021-04-06
  • 2021-10-30
  • 2022-02-25
  • 2022-02-25
  • 2021-09-24
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2021-10-22
  • 2022-02-18
  • 2021-07-15
  • 2021-12-25
  • 2022-12-23
  • 2021-08-12
相关资源
相似解决方案