多重事件继承

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConTest
{

 

    class AccountEventArgs : EventArgs
    {
        private string name;
        public string Name
        {
            get { return name; }
        }
        public AccountEventArgs(string name)
        {
            this.name = name;
        }
    }
    class AccountItemEventArgs:AccountEventArgs
    {

        private string project;

        public string Project
        {
            get { return project; }
          
        }

        public AccountItemEventArgs(string project, string name)
            : base(name)
        {
            this.project = project;
        }
    }
}

posted @ 2013-04-26 19:39  Predator  阅读(105)  评论(0编辑  收藏  举报