Beispiel #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);
        }
Beispiel #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);
        }