public Form1(PubSubStore pubSubStore) { InitializeComponent(); _pubSubStore = pubSubStore; _pubSubStore.Subscribe(PubSubStoreField.Name, this); }
public Form3(PubSubStore pubSubStore) { InitializeComponent(); _pubSubStore = pubSubStore; _pubSubStore.Subscribe(PubSubStoreField.Count, this); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var pubSubStore = new PubSubStore(); Application.Run(new Form1(pubSubStore)); }