示例#1
0
        private void SaveField(object fieldInstance)
        {
            FieldViewModel field = fieldInstance as FieldViewModel;

            if (field != null && field.IsValid)
            {
                fields.Add(field);
            }
            Back();
        }
示例#2
0
        private void DeleteField(object fieldInstance)
        {
            FieldViewModel field = fieldInstance as FieldViewModel;

            if (field != null)
            {
                fields.Remove(field);
            }
            Back();
        }