コード例 #1
0
        /// <summary>
        /// Fetch the system message if there is one
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void BroadcastMessageText_Loaded(object sender, RoutedEventArgs e)
        {
            try
            {
                // Get broadcast message
                var message = await KryptPadApi.GetBroadcastMessage();

                if (!string.IsNullOrWhiteSpace(message))
                {
                    BroadcastMessage.Visibility = Visibility.Visible;
                    BroadcastMessageText.Text   = message;
                }
            }
            catch (Exception) { }
        }