예제 #1
0
		public UserDevicesControl()
		{
			InitHelper.InitTimer(this, InitializeComponent);
			if (ControlsHelper.IsDesignMode(this))
				return;
			MainDataGrid.AutoGenerateColumns = false;
		}
예제 #2
0
        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();
            }
        }
예제 #3
0
 public PadListControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     InitScrollFix();
     MainDataGrid.ItemsSource         = mappedUserSettings;
     _MainDataGridFormattingConverter = (ItemFormattingConverter)MainDataGrid.Resources[nameof(_MainDataGridFormattingConverter)];
     _MainDataGridFormattingConverter.ConvertFunction = _MainDataGridFormattingConverter_Convert;
 }
예제 #4
0
 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();
 }
예제 #5
0
 public AxisToButtonControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
 }
예제 #6
0
        public UserProgramsControl()
        {
            InitHelper.InitTimer(this, InitializeComponent);
            ListPanel.MainDataGrid.SelectionChanged += MainDataGrid_SelectionChanged;
            var userGamesView = new BindingListCollectionView(SettingsManager.UserGames.Items);

            ListPanel.MainDataGrid.ItemsSource = userGamesView;
        }
예제 #7
0
 public BaseWithHeaderControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (IsDesignMode)
     {
         return;
     }
 }
예제 #8
0
 public UserDevicesControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
 }
예제 #9
0
 public PadItem_DInputControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     InitDirectInputTab();
 }
예제 #10
0
        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();
        }
예제 #11
0
 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();
 }
예제 #13
0
 public OptionsGeneralControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     LocationFolderBrowserDialog = new System.Windows.Forms.FolderBrowserDialog();
 }
예제 #14
0
 public LogControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     MainDataGrid.AutoGenerateColumns = false;
     UpdateAppearance();
 }
예제 #15
0
 public CloudControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     //TasksTimer.Queue.AsynchronousInvoke = true;
     MainDataGrid.AutoGenerateColumns = false;
 }
예제 #16
0
 public PadItem_AdvancedControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     // Add GamePad typed to ComboBox.
     DeviceSubTypeComboBox.ItemsSource = (DeviceSubType[])Enum.GetValues(typeof(DeviceSubType));
 }
예제 #17
0
 public UserProgramListControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     ScanProgressLevel0Label.Text = "";
     ScanProgressLevel1Label.Text = "";
 }
예제 #18
0
 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;
        }
예제 #20
0
 public BaseWithHeaderControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (IsDesignMode)
     {
         return;
     }
     defaultHead = HelpHeadLabel.Content as string;
     defaultBody = HelpBodyLabel.Text;
     _bwm        = new BaseWithHeaderManager(HelpHeadLabel, HelpBodyLabel, LeftIcon, this);
 }
예제 #21
0
 public PadItem_DInputControl()
 {
     oldState   = new JoystickState();
     emptyState = oldState;
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     InitDirectInputTab();
 }
예제 #22
0
 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          = "";
 }
예제 #23
0
 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;
 }
예제 #24
0
 public LogControl()
 {
     Items = new SortableBindingList <LogItem>();
     InitHelper.InitTimer(this, InitializeComponent);
     //InitializeComponent();
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     MainDataGrid.AutoGenerateColumns = false;
     UpdateAppearance();
 }
예제 #25
0
        public UpdateWindow()
        {
            InitHelper.InitTimer(this, InitializeComponent);
            if (ControlsHelper.IsDesignMode(this))
            {
                return;
            }
            LogPanel.LogGridScrollUp = false;
            var process = System.Diagnostics.Process.GetCurrentProcess();

            processFileName = process.MainModule.FileName;
        }
예제 #26
0
 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));
 }
예제 #27
0
 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;
 }
예제 #28
0
 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;
 }
예제 #29
0
 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;
 }
예제 #30
0
 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;
 }