private void ButtonAddNumberConversion_OnClick(object sender, RoutedEventArgs e)
        {
            try
            {
                var window = new DCSBIOSComparatorWindow();
                window.ShowDialog();
                if (window.DialogResult == true)
                {
                    _dcsbiosDecoder.Add(window.DCSBIOSComparator);
                    ShowDecoders();
                }

                SetFormState();
            }
            catch (Exception ex)
            {
                Common.ShowErrorMessageBox(ex);
            }
        }
 private void ButtonAddConverter_OnClick(object sender, RoutedEventArgs e)
 {
     try
     {
         var window = new StreamDeckDCSBIOSConverterWindow(_dcsbiosDecoder.StreamDeckButtonName, _panelHash);
         window.ShowDialog();
         if (window.DialogResult == true)
         {
             _dcsbiosDecoder.Add(window.DCSBIOSConverter.DeepClone());
             window.DCSBIOSConverter = null;
             ShowConverters();
             SetFormState();
         }
     }
     catch (Exception ex)
     {
         Common.ShowErrorMessageBox(ex);
     }
 }
Exemplo n.º 3
0
 private void ButtonAddConverter_OnClick(object sender, RoutedEventArgs e)
 {
     try
     {
         var window = new StreamDeckDCSBIOSConverterWindow(_dcsbiosDecoder.StreamDeckButtonName, _streamDeckPanel);
         window.ShowDialog();
         if (window.DialogResult == true)
         {
             DCSBIOSConverter dcsbiosConverter = window.DCSBIOSConverter.CloneJson();
             dcsbiosConverter.StreamDeckPanelInstance = _streamDeckPanel;
             _dcsbiosDecoder.Add(dcsbiosConverter);
             window.DCSBIOSConverter = null;
             ShowConverters();
             SetFormState();
         }
     }
     catch (Exception ex)
     {
         Common.ShowErrorMessageBox(ex);
     }
 }