1: using System;
2: using System.Collections.Generic;
3: using System.Linq;
4: using System.Text;
5:
6: namespace CompositePattern
7: {
8: class Component
9: {
10: protected void InitializeOpsService(object ios)
11: {
12: }
13:
14: protected object GetOpsService()
15: {
16: return null;
17: }
18: }
19:
20: class FxContainer : Component
21: {
22: protected void Activate()
23: {
24: }
25:
26: protected void Deactivate()
27: {
28: }
29: }
30:
31: class FxComponent : FxContainer
32: {
33: }
34:
35: class FxButton : FxComponent
36: {
37: protected void SetState(int state)
38: {
39: }
40:
41: protected int GetState()
42: {
43: return 0;
44: }
45: }
46:
47: class FxLabel : FxComponent
48: {
49: protected void SetText(string text)
50: {
51: }
52:
53: protected string GetText()
54: {
55: return string.Empty;
56: }
57: }
58:
59: class FxTextBox : FxComponent
60: {
61: protected void SetText(string text)
62: {
63: }
64:
65: protected string GetText()
66: {
67: return string.Empty;
68: }
69: }
70:
71: class FxWindow : FxContainer
72: {
73: protected void SetTitle(string text)
74: {
75: }
76:
77: protected string GetTitle()
78: {
79: return string.Empty;
80: }
81: }
82:
83: class FxFrame : FxWindow
84: {
85: }
86:
87: class FxDialogBox : FxWindow
88: {
89: }
90: }