Esempio n. 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        AccountEvent accountEvent = new AccountEvent("03401", "李明", 200);

        accountEvent.Overdraw += new EventHandler(account_Overdraw);
        accountEvent.Acquire(400);
    }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        AccountEvent account = new AccountEvent("3113002319", "李代福", 200);

        account.Overdraw += new EventHandler(account_Overdraw);
        account.Acquire(300);
    }