Beispiel #1
0
        private void StreamDeckDCSBIOSDecoderWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            try
            {
                if (_formLoaded)
                {
                    return;
                }

                ShowDecoder();
                _dcsbiosDecoder.IsVisible = true;
                _popupSearch        = (Popup)FindResource("PopUpSearchResults");
                _popupSearch.Height = 400;
                _popupDataGrid      = (DataGrid)LogicalTreeHelper.FindLogicalNode(_popupSearch, "PopupDataGrid");
                _formLoaded         = true;
                SetFormState();
                TextBoxSearchWord.Focus();

                _dispatcherTimer          = new System.Windows.Threading.DispatcherTimer(DispatcherPriority.Send);
                _dispatcherTimer.Tick    += new EventHandler(DispatcherTimerTick);
                _dispatcherTimer.Interval = new TimeSpan(0, 0, 2);
                _dispatcherTimer.Start();
            }
            catch (Exception ex)
            {
                Common.ShowErrorMessageBox(ex);
            }
        }
Beispiel #2
0
 private void WindowLoaded(object sender, RoutedEventArgs e)
 {
     try
     {
         _popupSearch             = (Popup)FindResource("PopUpSearchResults");
         _dataGridValues          = ((DataGrid)LogicalTreeHelper.FindLogicalNode(_popupSearch, "DataGridValues"));
         LabelDescription.Content = _description;
         ShowValues2();
         _formLoaded = true;
         SetFormState();
         TextBoxSearchWord.Focus();
     }
     catch (Exception ex)
     {
         Common.ShowErrorMessageBox(1001, ex);
     }
 }
 private void WindowLoaded(object sender, RoutedEventArgs e)
 {
     try
     {
         LabelProfileDescription.Content = ProfileHandler.ActiveDCSFPProfile.Description;
         _popupSearch             = (Popup)FindResource("PopUpSearchResults");
         _popupSearch.Height      = 400;
         _dataGridValues          = ((DataGrid)LogicalTreeHelper.FindLogicalNode(_popupSearch, "DataGridValues"));
         LabelDescription.Content = _description;
         ShowValues1();
         ShowValues2();
         _formLoaded = true;
         SetFormState();
         TextBoxSearchWord.Focus();
         ComboBoxInterfaceType.SelectionChanged += ComboBoxInterfaceType_OnSelectionChanged;
     }
     catch (Exception ex)
     {
         Common.ShowErrorMessageBox(ex);
     }
 }
        private void StreamDeckDCSBIOSDecoderWindow_OnLoaded(object sender, RoutedEventArgs e)
        {
            try
            {
                if (_formLoaded)
                {
                    return;
                }

                ShowDecoder();
                _dcsbiosDecoder.IsVisible = true;
                _popupSearch        = (Popup)FindResource("PopUpSearchResults");
                _popupSearch.Height = 400;
                _popupDataGrid      = ((DataGrid)LogicalTreeHelper.FindLogicalNode(_popupSearch, "PopupDataGrid"));
                _formLoaded         = true;
                SetFormState();
                TextBoxSearchWord.Focus();
            }
            catch (Exception ex)
            {
                Common.ShowErrorMessageBox(ex);
            }
        }