private async void ButtonTurnOff_Click(object sender, RoutedEventArgs e)
        {
            if (isSenseHatAvailable)
            {
                var turnOffResult = await senseHatLedArrayConsumer.TurnOffAsync();

                var allJoynStatus = AllJoynStatusHelper.GetStatusCodeName(turnOffResult.Status);

                DiagnosticInfo.Display(diagnosticData, "Turn off method result: " + allJoynStatus);
            }
            else
            {
                DiagnosticInfo.Display(diagnosticData, deviceUnavailable);
            }
        }
        private async void ButtonGetShape_Click(object sender, RoutedEventArgs e)
        {
            if (isSenseHatAvailable)
            {
                var getShapeResult = await senseHatLedArrayConsumer.GetShapeAsync();

                var allJoynStatus = AllJoynStatusHelper.GetStatusCodeName(getShapeResult.Status);

                var info = string.Format("Current shape: {0}, Status: {1}",
                                         (ShapeKind)getShapeResult.Shape, allJoynStatus);

                DiagnosticInfo.Display(diagnosticData, info);
            }
            else
            {
                DiagnosticInfo.Display(diagnosticData, deviceUnavailable);
            }
        }
        private async void ButtonDrawShape_Click(object sender, RoutedEventArgs e)
        {
            if (isSenseHatAvailable)
            {
                var drawShapeResult = await senseHatLedArrayConsumer.DrawShapeAsync(
                    (int)selectedShape);

                var allJoynStatus = AllJoynStatusHelper.GetStatusCodeName(
                    drawShapeResult.Status);

                var info = string.Format("Shape drawn: {0}, Status: {1}",
                                         selectedShape, allJoynStatus);

                DiagnosticInfo.Display(diagnosticData, info);
            }
            else
            {
                DiagnosticInfo.Display(diagnosticData, deviceUnavailable);
            }
        }