示例#1
0
 //��������Ա����ҵ�����
 public void BankProcess(ClientEx client)
 {
     switch (client.ClientType)
     {
         case "Deposit Person":
             client.ToDeposit(client.Money);
             break;
         case "Transfer Person":
             client.ToTransfer(client.Money);
             break;
         case "Draw Money Person":
             client.ToDrawMoney(client.Money);
             break;
     }
 }
示例#2
0
        //定义银行员工的业务操作
        public void BankProcess(ClientEx client)
        {
            switch (client.ClientType)
            {
            case "Deposit Person":
                client.ToDeposit(client.Money);
                break;

            case "Transfer Person":
                client.ToTransfer(client.Money);
                break;

            case "Draw Money Person":
                client.ToDrawMoney(client.Money);
                break;
            }
        }