Ejemplo n.º 1
0
        public ManualKeyBinder()
        {
            Result = String.Empty;

            _bind       = new TextEdit();
            _apply      = Factory.Items.GetControlButton(Controller.GetLanguage()["ApplyButton"]);
            _close      = new BlankItem();
            _deleteLast = Factory.Items.GetImagedButton(Factory.Resources.ClearIcon);
            _win        = Factory.Items.GetControlButton("Win");
            _lMouse     = Factory.Items.GetControlButton("MouseLeft");
            _rMouse     = Factory.Items.GetControlButton("MouseRight");
            _mMouse     = Factory.Items.GetControlButton("MouseMiddle");

            _keySequence = new List <string>();

            SetStyle(DefaultsService.GetDefaultStyle(typeof(ManualKeyBinder)));
        }
Ejemplo n.º 2
0
        public CommonSettingsContainer()
        {
            SetSpacing(0, 10);
            SetPadding(10, 10, 10, 0);
            SetMargin(10, 10, 10, 10);

            _addProfile    = Items.GetImagedButton(Resources.PlusIcon);
            _copyProfile   = Items.GetImagedButton(Resources.CopyIcon);
            _removeProfile = Items.GetImagedButton(Resources.ClearIcon);

            _autoLaunchAppCheckBox = Items.GetSwitcher(Controller.GetLanguage()["SetsAutoLaunch"],
                                                       Controller.GetSettings().AutoLaunchOnSystemStartUp);
            _startMinimizedCheckBox = Items.GetSwitcher(Controller.GetLanguage()["SetsStartMinimized"],
                                                        Controller.GetSettings().StartAppMinimized);
            _autoStartCheckBox = Items.GetSwitcher(Controller.GetLanguage()["SetsAutoStart"],
                                                   Controller.GetSettings().AutoStart);

            _languageList = new NamedComboBox(Controller.GetLanguage()["SetsLanguage"]);
            foreach (var loc in Controller.GetLocalizations())
            {
                _languageList.AddItem(Items.GetListItem(loc.Key));
            }

            _profileList = new NamedComboBox(Controller.GetLanguage()["SetsProfile"]);
            foreach (var profile in Controller.GetAllProfiles())
            {
                _profileList.AddItem(Items.GetListItem(profile.Name));
            }

            _miMode0 = Items.GetListItem(Controller.GetLanguage()["SetsIMode0"]);
            _miMode1 = Items.GetListItem(Controller.GetLanguage()["SetsIMode1"]);
            _miMode2 = Items.GetListItem(Controller.GetLanguage()["SetsIMode2"]);

            _inputModeList = new NamedComboBox(Controller.GetLanguage()["SetsInput"]);
            _inputModeList.AddItem(_miMode0);
            _inputModeList.AddItem(_miMode1);
            _inputModeList.AddItem(_miMode2);

            _headerTitle   = Items.GetHeaderLabel(Controller.GetLanguage()["SetsSectionsCommon"]);
            _headerProfile = Items.GetHeaderLabel(Controller.GetLanguage()["SetsSectionsProfile"]);
            _headerLocale  = Items.GetHeaderLabel(Controller.GetLanguage()["SetsSectionsLocalization"]);
        }