public TaskControlOptions() { taskControlType = TaskControlType.Default; minValue = 0; maxValue = 100000; isChecked = false; }
public void CreateTaskUIOption(PropertyInfo pi, TaskControlType taskItemType, Type itemType) { if (taskItemType == TaskControlType.Default) { } else if (taskItemType == TaskControlType.OpenFileTextBox) { } else if (taskItemType == TaskControlType.SaveFileTextBox) { } else if (taskItemType == TaskControlType.FolderTextBox) { } else if (taskItemType == TaskControlType.NumericUpDown) { } }
public TaskControlType GetTaskControlType(PropertyInfo pi) { CustomAttributeData cad = pi.CustomAttributes.First(); if (cad != null) { if (cad.AttributeType == typeof(TaskControlOptions)) { CustomAttributeTypedArgument cata = cad.ConstructorArguments.First(); if (cata.ArgumentType == typeof(TaskControlType)) { TaskControlType tit = (TaskControlType)cata.Value; return(tit); } } } return(TaskControlType.Default); }
public TaskControlOptions(bool isChecked) { taskControlType = TaskControlType.Default; this.isChecked = isChecked; }
public TaskControlOptions(int minValue, int maxValue) { taskControlType = TaskControlType.Default; this.minValue = minValue; this.maxValue = maxValue; }
public TaskControlOptions(TaskControlType type) { taskControlType = type; }