예제 #1
0
        private void AddFileInfo(ObjUpdaterInArray updater, FileInfo fi)  //new ObjUpdater(obj, prinfo)
        {
            var pr = new TextBoxViewProperty <ObjUpdaterInArray>(updater, (o, v) => {
                o.Update(new FileInfo(v));
            });

            pr.Title = updater.Index.ToString();
            pr.Value = fi.FullName;
            Value.Add(pr);
        }
예제 #2
0
        public void AddPrimitive <T>(string key, T val, Action <string> change)
        {
            var pr = new TextBoxViewProperty(change)
            {
                Title = key,
                Value = val == null ? string.Empty : val.ToString()
            };

            Value.Add(pr);
        }