Ejemplo n.º 1
0
        public void UIShowLayer(string layerName)
        {
            try
            {
                HideAllDotImages();

                var selectedLayer = StreamDeckPanelInstance.GetLayer(layerName);

                foreach (var buttonImage in ButtonImages)
                {
                    buttonImage.Bill.Clear();

                    var streamDeckButton = selectedLayer.GetStreamDeckButton(buttonImage.Bill.StreamDeckButtonName);

                    buttonImage.Bill.Button = streamDeckButton;

                    if (streamDeckButton.HasConfig)
                    {
                        SetDotImageStatus(true, StreamDeckFunction.ButtonNumber(streamDeckButton.StreamDeckButtonName));
                    }
                    SetFormState();
                }
            }
            catch (Exception ex)
            {
                Common.ShowErrorMessageBox(ex);
            }
        }
Ejemplo n.º 2
0
 protected override void Show()
 {
     DrawBitmap();
     if (StreamDeckPanelInstance == null)
     {
         throw new Exception("StreamDeckPanelInstance is not set, cannot show image [FaceTypeDCSBIOS.]");
     }
     StreamDeckPanelInstance.SetImage(StreamDeckButtonName, Bitmap);
 }