public static void Main(string[] args)
        {
            var fund = new Fund();

            fund.BuyFund();
            fund.SellFund();
            Console.Read();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Fund jijin = new Fund();

            jijin.BuyFund();
            jijin.SellFund();

            Console.ReadKey();
        }
Exemple #3
0
        static void Main(string[] args)
        {
            Fund fund = new Fund();

            fund.BuyFund();
            fund.SellFund();

            Console.ReadLine();
        }
        static void Main(string[] args)
        {
            #region 基本用法(对应Basic.cs)
            Facade facade = new Facade();

            facade.MethodA();
            facade.MethodB();
            #endregion

            #region 具体实例(对应Example.cs)
            Fund jijin = new Fund();

            jijin.BuyFund();
            jijin.SellFund();

            Console.Read();
            #endregion
        }
Exemple #5
0
        static void Main(string[] args)
        {
            #region 基本用法(对应Basic.cs)
            Facade facade = new Facade();

            facade.MethodA();
            facade.MethodB();
            #endregion

            #region 具体实例(对应Example.cs)
            Fund jijin = new Fund();

            jijin.BuyFund();
            jijin.SellFund();

            Console.Read();
            #endregion
        }
Exemple #6
0
        static void Main(string[] args)
        {
            Fund fund = new Fund();

            // 基金買入
            fund.BuyFund();

            // 基金贖回
            fund.SellFund();

            // 由於Facade的作用,用戶端可以根本不知三個子系統類別的存在
            Facade facade = new Facade();

            facade.MethodA();
            facade.MethodB();

            Console.ReadLine();
        }