Ejemplo n.º 1
0
        private static void OnFieldPropertyChanged(ChecklistQuestionField questionField, object sender, PropertyChangedEventArgs e)
        {
            if (e.PropertyName == FieldEdit.NameProperty.Name)
            {
                var field = (FieldEdit)sender;
                questionField.Name = field.Name;
            }

            if (e.PropertyName == FieldEdit.SystemNameProperty.Name)
            {
                var field = (FieldEdit)sender;
                questionField.SystemName = field.SystemName; 
            }

            if (e.PropertyName == ReflectionHelper.GetPropertyName<FieldEdit>(f => f.ColumnType))
            {
                var field = (FieldEdit)sender;
                questionField.ColumnType = field.ColumnType;
            }
        }
Ejemplo n.º 2
0
 private static void OnProcessPropertyChanged(ChecklistQuestionField questionField, object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == ProcessEdit.NameProperty.Name)
     {
         var process = (ProcessEdit)sender;
         questionField.SourceName = process.Name;
     }
 }