Пример #1
0
        public bool PEGI_inList(IList list, int ind, ref int edited)
        {
            var changed = false;

            CountForInspector.ToString().edit(60, ref dataExplorer.tag).changes(ref changed);

            if (Cfg != null)
            {
                if (icon.Load.ClickUnFocus("Decode Data into " + Cfg.ToPegiString()).changes(ref changed))
                {
                    dataExplorer.UpdateData();
                    Cfg.Decode(dataExplorer.data);
                }
                if (icon.Save.ClickUnFocus("Save data from " + Cfg.ToPegiString()).changes(ref changed))
                {
                    dataExplorer = new ExploringCfg(dataExplorer.tag, Cfg.Encode().ToString());
                }
            }

            if (icon.Enter.Click(comment))
            {
                edited = ind;
            }

            return(changed);
        }
Пример #2
0
        public bool InspectInList(IList list, int ind, ref int edited)
        {
            var changed = false;

            CountForInspector().ToString().edit(60, ref dataExplorer.tag).changes(ref changed);

            if (Cfg != null)
            {
                if (icon.Load.ClickConfirm("sfgLoad", "Decode Data into " + Cfg.GetNameForInspector()).changes(ref changed))
                {
                    dataExplorer.UpdateData();
                    Cfg.Decode(dataExplorer.data);
                }
                if (icon.Save.ClickConfirm("cfgSave", "Save data from " + Cfg.GetNameForInspector()).changes(ref changed))
                {
                    dataExplorer = new ExploringCfg(dataExplorer.tag, Cfg.Encode().ToString());
                }
            }

            if (icon.Enter.Click(comment))
            {
                edited = ind;
            }

            return(changed);
        }