Esempio n. 1
0
        private void btnPublish_Click(object sender, EventArgs e)
        {
            PublishForm publishForm = new PublishForm();

            publishForm.ShowDialog();
            string publishMessage = publishForm.Message;
            bool   storeInHistory = publishForm.StoreInHistory;

            CaptureInputData();
            UpdateListBoxForDisplay("Running Publish");
            pubnub.Publish <string>(_channelName, publishMessage, storeInHistory, DisplayReturnMessage, DisplayErrorMessage);
        }
Esempio n. 2
0
        private void btnPublish_Click(object sender, EventArgs e)
        {
            PublishForm publishForm = new PublishForm();
            publishForm.ShowDialog();
            string publishMessage = publishForm.Message;
            bool storeInHistory = publishForm.StoreInHistory;

            CaptureInputData();
            UpdateListBoxForDisplay("Running Publish");
            pubnub.Publish<string>(_channelName, publishMessage, storeInHistory, DisplayReturnMessage, DisplayErrorMessage);
        }