示例#1
0
        public void GetSectionToEdit(string name, out object retObjValue, out Model.IINIList retListValue)
        {
            retObjValue  = null;
            retListValue = null;

            switch (name)
            {
            case "[Details]":
            {
                retObjValue = Details;
            }
            break;

            case "[Version]":
            {
                retObjValue = Version;
            }
            break;

            case "[SpecialPaths]":
            {
                retObjValue = SpecialPaths;
            }
            break;

            case "[Dependencies]":
            {
                retObjValue = Dependencies;
            }
            break;

            case "[Control]":
            {
                retObjValue = Control;
            }
            break;

            case "[License]":
            {
                retObjValue = License;
            }
            break;

            case "[Format]":
            {
                retObjValue = Format;
            }
            break;
            }
        }
示例#2
0
        private Control GetCollectionControl(Model.IINIList selectedObject)
        {
            Control retVal;
            CollectionEditorUserControl userControl = new CollectionEditorUserControl();

            userControl.Anchor   = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
            userControl.Location = new System.Drawing.Point(8, 15);
            userControl.Name     = "collectionEditorUserControl";
            userControl.Size     = new System.Drawing.Size(708, 585);
            userControl.TabIndex = 0;

            userControl.PropertyBrowser.SelectedGridItemChanged += PropertyGrid_SelectedGridItemChanged;
            userControl.PropertyValueChanged += UserControl_PropertyValueChanged;

            userControl.SelectedList = selectedObject;
            retVal = userControl;
            return(retVal);
        }
示例#3
0
        public void SelectedObjects(Model.IINIList selectedObjects, string sectionName, string selectedProperty)
        {
            containerGroupBox.Controls.Clear();
            _selectedObjects = selectedObjects;

            if (_selectedObjects == null)
            {
                return;
            }

            var control = GetCollectionControl(_selectedObjects);

            if (control != null)
            {
                control.Size = new System.Drawing.Size(containerGroupBox.Width - 15, containerGroupBox.Height - 25);
                containerGroupBox.Controls.Add(control);
                ShowHelp(helpTextBox, sectionName, selectedProperty);
            }
        }
示例#4
0
        public void GetSectionToEdit(string name, out object retObjValue, out Model.IINIList retListValue)
        {
            retObjValue  = null;
            retListValue = null;

            switch (name)
            {
            case WaitForEXEN_Tag:
            {
                retListValue = Launch.WaitForEXEN;
            }
            break;

            case "[Launch]":
            {
                retObjValue = Launch;
            }
            break;

            case "[Activate]":
            {
                retObjValue = Activate;
            }
            break;

            case "[LiveMode]":
            {
                retObjValue = LiveMode;
            }
            break;

            case "[Environment]":
            {
                retListValue = Environment;
            }
            break;

            case "[QtKeysCleanup]":
            {
                retListValue = QtKeysCleanup;
            }
            break;

            case "[Language]":
            {
                retObjValue = Language;
            }
            break;

            case "[LanguageStrings]":
            {
                retListValue = LanguageStrings;
            }
            break;

            case "[LanguageFile]":
            {
                retObjValue = LanguageFile;
            }
            break;

            case "FileWriteN":
            {
                retListValue = FileWriteN;
            }
            break;
            }
        }