Esempio n. 1
0
        public PresetTweaks()
        {
            InitializeComponent();

            TweakList = new ControlList <TweakItemControl, TweakPreset.SingleTweak>(this.itemScroll, (item) =>
            {
                var ctrl          = new TweakItemControl(item);
                ctrl.ItemChanged += Ctrl_ItemChanged;
                return(ctrl);
            }, (item) => item.TweakName);
        }
Esempio n. 2
0
        private void Ctrl_ItemChanged(object sender, EventArgs e)
        {
            TweakItemControl ctrl = (TweakItemControl)sender;

            TweakPreset.Tweaks[ctrl.item.TweakName] = ctrl.item;
        }