public UserDevicesControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) return; MainDataGrid.AutoGenerateColumns = false; }
public ProgramItemControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } DInputCheckBoxes = ControlsHelper.GetAll <CheckBox>(DInputMaskGroupBox); XInputCheckBoxes = ControlsHelper.GetAll <CheckBox>(XInputMaskGroupBox); HookCheckBoxes = ControlsHelper.GetAll <CheckBox>(HookMaskGroupBox); AutoMapCheckBoxes = ControlsHelper.GetAll <CheckBox>(AutoMapMaskGroupBox); // Fill architecture combo box. var paItems = (ProcessorArchitecture[])Enum.GetValues(typeof(ProcessorArchitecture)); foreach (var item in paItems) { ProcessorArchitectureComboBox.Items.Add(item); } // Fill emulation type combo box. var etItems = (EmulationType[])Enum.GetValues(typeof(EmulationType)); foreach (var item in etItems) { EmulationTypeComboBox.Items.Add(item); } lock (CurrentGameLock) { EnableEvents(); } }
public PadListControl() { InitHelper.InitTimer(this, InitializeComponent); InitScrollFix(); MainDataGrid.ItemsSource = mappedUserSettings; _MainDataGridFormattingConverter = (ItemFormattingConverter)MainDataGrid.Resources[nameof(_MainDataGridFormattingConverter)]; _MainDataGridFormattingConverter.ConvertFunction = _MainDataGridFormattingConverter_Convert; }
public ProgramListControl() { InitHelper.InitTimer(this, InitializeComponent); // Make font more consistent with the rest of the interface. MainDataGrid.AutoGenerateColumns = false; ImportOpenFileDialog = new OpenFileDialog(); ExportSaveFileDialog = new SaveFileDialog(); }
public AxisToButtonControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } }
public UserProgramsControl() { InitHelper.InitTimer(this, InitializeComponent); ListPanel.MainDataGrid.SelectionChanged += MainDataGrid_SelectionChanged; var userGamesView = new BindingListCollectionView(SettingsManager.UserGames.Items); ListPanel.MainDataGrid.ItemsSource = userGamesView; }
public BaseWithHeaderControl() { InitHelper.InitTimer(this, InitializeComponent); if (IsDesignMode) { return; } }
public UserDevicesControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } }
public PadItem_DInputControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } InitDirectInputTab(); }
public PadItem_ForceFeedbackControl() { InitHelper.InitTimer(this, InitializeComponent); var effectsTypes = Enum.GetValues(typeof(ForceEffectType)).Cast <ForceEffectType>().Distinct().ToArray(); ForceTypeComboBox.ItemsSource = effectsTypes; overallStrengthLink = new TrackBarUpDownTextBoxLink(StrengthTrackBar, StrengthUpDown, StrengthTextBox, 0, 100); InitUpdateTimer(); }
public PadItem_MacrosControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } _Recorder = new Recorder(); }
public OptionsRemoteControllerControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } LoadSettings(); }
public OptionsGeneralControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } LocationFolderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog(); }
public LogControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } MainDataGrid.AutoGenerateColumns = false; UpdateAppearance(); }
public CloudControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } //TasksTimer.Queue.AsynchronousInvoke = true; MainDataGrid.AutoGenerateColumns = false; }
public PadItem_AdvancedControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } // Add GamePad typed to ComboBox. DeviceSubTypeComboBox.ItemsSource = (DeviceSubType[])Enum.GetValues(typeof(DeviceSubType)); }
public UserProgramListControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } ScanProgressLevel0Label.Text = ""; ScanProgressLevel1Label.Text = ""; }
public SummariesListControl() { InitHelper.InitTimer(this, InitializeComponent); MainDataGrid.AutoGenerateColumns = false; MainDataGrid.SelectionMode = System.Windows.Controls.DataGridSelectionMode.Single; if (ControlsHelper.IsDesignMode(this)) { return; } }
public PadItem_ForceFeedback_MotorControl() { InitHelper.InitTimer(this, InitializeComponent); deadzoneLink = new TrackBarUpDownTextBoxLink(StrengthTrackBar, StrengthUpDown, StrengthTextBox, 0, 100); offsetLink = new TrackBarUpDownTextBoxLink(PeriodTrackBar, PeriodUpDown, PeriodTextBox, 0, 100); testLink = new TrackBarUpDownTextBoxLink(TestTrackBar, TestUpDown, TestTextBox, 0, 100); // fill direction values. var effectDirections = (ForceEffectDirection[])Enum.GetValues(typeof(ForceEffectDirection)); DirectionComboBox.ItemsSource = effectDirections; }
public BaseWithHeaderControl() { InitHelper.InitTimer(this, InitializeComponent); if (IsDesignMode) { return; } defaultHead = HelpHeadLabel.Content as string; defaultBody = HelpBodyLabel.Text; _bwm = new BaseWithHeaderManager(HelpHeadLabel, HelpBodyLabel, LeftIcon, this); }
public PadItem_DInputControl() { oldState = new JoystickState(); emptyState = oldState; InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } InitDirectInputTab(); }
public IssuesControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } NoIssuesPanel.Visibility = Visibility.Collapsed; LinePanel.Visibility = Visibility.Collapsed; ExceptionInfoButton.Visibility = Visibility.Collapsed; RunStateLabel.Content = ""; }
public UserSettingListControl() { InitHelper.InitTimer(this, InitializeComponent); MainDataGrid.AutoGenerateColumns = false; MainDataGrid.SelectionMode = System.Windows.Controls.DataGridSelectionMode.Single; if (ControlsHelper.IsDesignMode(this)) { return; } _MainDataGridFormattingConverter = (ItemFormattingConverter)MainDataGrid.Resources[nameof(_MainDataGridFormattingConverter)]; _MainDataGridFormattingConverter.ConvertFunction = _MainDataGridFormattingConverter_Convert; }
public LogControl() { Items = new SortableBindingList <LogItem>(); InitHelper.InitTimer(this, InitializeComponent); //InitializeComponent(); if (ControlsHelper.IsDesignMode(this)) { return; } MainDataGrid.AutoGenerateColumns = false; UpdateAppearance(); }
public UpdateWindow() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } LogPanel.LogGridScrollUp = false; var process = System.Diagnostics.Process.GetCurrentProcess(); processFileName = process.MainModule.FileName; }
public AxisToButtonControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } controlsLink = new TrackBarUpDownTextBoxLink(DeadZoneTrackBar, DeadZoneNumericUpDown, DeadZoneTextBox, 0, short.MaxValue); controlsLink.ValueChanged += controlsLink_ValueChanged; arrowEnabledImage = ControlsHelper.GetImageSource(Properties.Resources.arrow_right_16x16); arrowDisabledImage = ControlsHelper.GetImageSource(AppHelper.GetDisabledImage(Properties.Resources.arrow_right_16x16)); }
public UserDevicesWindow() { InitHelper.InitTimer(this, InitializeComponent); WinControl.MainBody.Content = WinControl.MainContent; ControlsHelper.CheckTopMost(this); WinControl.SetTitle("X360CE - Map Device To Controller"); WinControl.SetHead("Map Device To Controller"); WinControl.SetBodyInfo("Select Devices and press [Add Selected Devices] button."); WinControl.SetImage(Icons_Default.Icon_gamepad); WinControl.SetButton1("Add Selected Devices", Icons_Default.Icon_ok); WinControl.SetButton2("Cancel", Icons_Default.Icon_close); WinControl.SetButton3(); MainControl.MapDeviceToControllerMode = true; }
public AxisMapControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } InitPaintObjects(); // Initialize in constructor and not on "Load" event or it will reset AntiDeadZone value // inside DeadZoneControlsLink(...). updateTimer = new System.Timers.Timer(); updateTimer.AutoReset = false; updateTimer.Interval = 500; }
public LoadPresetsWindow() { InitHelper.InitTimer(this, InitializeComponent); ControlsHelper.CheckTopMost(this); WinControl.MainBody.Content = WinControl.MainContent; WinControl.InfoPanel.SetTitle("X360CE - Load Preset"); WinControl.InfoPanel.SetHead("Load Preset"); WinControl.InfoPanel.SetBodyInfo("Select Preset and press [Load Selected] button."); WinControl.InfoPanel.SetImage(Application.Current.Resources[Icons_Default.Icon_gamepad]); WinControl.SetButton1("Load Selected", Icons_Default.Icon_ok); WinControl.SetButton2("Cancel", Icons_Default.Icon_close); WinControl.SetButton3(); MainControl._ParentControl = WinControl; }
public UserDevicesWindow() { InitHelper.InitTimer(this, InitializeComponent); WinControl.MainBody.Content = WinControl.MainContent; ControlsHelper.CheckTopMost(this); Title = "X360CE - Map Device To Controller"; WinControl.InfoPanel.SetHead("Map Device To Controller"); WinControl.InfoPanel.SetBodyInfo("Select Devices and press [Add Selected Devices] button."); WinControl.InfoPanel.SetImage(Application.Current.Resources[Icons_Default.Icon_gamepad]); WinControl.SetButton1("Add Selected Devices", Icons_Default.Icon_ok); WinControl.SetButton2("Cancel", Icons_Default.Icon_close); WinControl.SetButton3(); // This window will be used to map DInput devices to XInput controller. MainControl.MapDeviceToControllerMode = true; }