Exemplo n.º 1
0
        public Form1(PubSubStore pubSubStore)
        {
            InitializeComponent();

            _pubSubStore = pubSubStore;

            _pubSubStore.Subscribe(PubSubStoreField.Name, this);
        }
Exemplo n.º 2
0
        public Form3(PubSubStore pubSubStore)
        {
            InitializeComponent();

            _pubSubStore = pubSubStore;

            _pubSubStore.Subscribe(PubSubStoreField.Count, this);
        }
Exemplo n.º 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var pubSubStore = new PubSubStore();

            Application.Run(new Form1(pubSubStore));
        }