Exemple #1
0
        /// <summary>
        /// Основное тело программы, отвечающее за ее работоспособность
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            Subsystem1 subsystem1 = new Subsystem1();
            Subsystem2 subsystem2 = new Subsystem2();
            Facade     facade     = new Facade(subsystem1, subsystem2);

            Client.ClientCode(facade);
        }
Exemple #2
0
 /// <summary>
 /// Конструктор класса
 /// </summary>
 /// <param name="subsystem1">ïîäñèñòåìà 1</param>
 /// <param name="subsystem2">ïîäñèñòåìà 2</param>
 public Facade(Subsystem1 subsystem1, Subsystem2 subsystem2)
 {
     this._subsystem1 = subsystem1;
     this._subsystem2 = subsystem2;
 }