اذا لم تجد ما تبحث عنه يمكنك استخدام كلمات أكثر دقة.
عند البدء بتصميم منزلك لا شك أنك تبحث عن ديكورات منازل كأول خطوة، هناك أشكال وألوان عديدة لديكورات المنازل ولكل شخص ذوقه، ديكورات المنازل تتيح لك رؤية التصميم الذي ترغم ببنائه أو أن تقوم باختيار مخططات المنازل والشكل الذي تريده عليه.
ديكورات منازل عديدة متوفرة ويمكنك الوصول إلى العديد من المصادر حول بعض الصور الخاصة بالديكورات وخاصة من خلال بعض المواقع وصفحات التواصل الاجتماعي مثل الفيسبوك أو ان تقوم بالحصول على بعض النصائح من خلال ويكيبيديا وموقع عرب ديكور[email protected].
using System; class DecoratorPattern { // Decorator Pattern Judith Bishop Dec 2006 // Shows two decorators and the output of various // combinations of the decorators on the basic component interface IComponent { string Operation(); } //////////////////////////////////////////////////////////// class Component: IComponent { public string Operation() { return "I am walking "; } } /////////////////////////////////////////// class DecoratorA: IComponent { IComponent component; public DecoratorA(IComponent c) { component = c; } public string Operation() { string s =component.Operation(); s += "and listening to Classic FM "; return s; } } /////////////////////////////////////////// class DecoratorB : IComponent { IComponent component; public string addedState = "past the Coffee Shop "; public DecoratorB(IComponent c) { component = c; } public string Operation() { string s =component.Operation(); s += "to school "; return s; } public string AddedBehavior() { return "and I bought a cappuccino "; } } /// /////////////////////////////////////////// class Client { static void Display(string s, IComponent c) { Console.WriteLine(s + c.Operation()); } static void Main() { Console.WriteLine("Decorator Pattern"); IComponent component = new Component(); Display("1. Basic component: ", component); Display("2. A-decorated : ", new DecoratorA(component)); Display("3. B-decorated : ", new DecoratorB(component)); Display("4. B-A-decorated : ", new DecoratorB( new DecoratorA(component))); // Explicit DecoratorB DecoratorB b = new DecoratorB(new Component()); Display("5. A-B-decorated : ", new DecoratorA(b)); // Invoking its added state and added behavior Console.WriteLine(" " + b.addedState + b.AddedBehavior()); } } } /* Output 76 Decorator Pattern 77 78 1. Basic component: I am walking 79 2. A-decorated : I am walking and listening to Classic FM 80 3. B-decorated : I am walking to school 81 4. B-A-decorated : I am walking and listening to Classic FM to school 82 5. A-B-decorated : I am walking to school and listening to Classic FM 83 past the Coffee Shop and I bought a cappuccino 84 */