Exemplo n.º 1
0
 public TaskControlOptions()
 {
     taskControlType = TaskControlType.Default;
     minValue        = 0;
     maxValue        = 100000;
     isChecked       = false;
 }
Exemplo n.º 2
0
 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)
     {
     }
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public TaskControlOptions(bool isChecked)
 {
     taskControlType = TaskControlType.Default;
     this.isChecked  = isChecked;
 }
Exemplo n.º 5
0
 public TaskControlOptions(int minValue, int maxValue)
 {
     taskControlType = TaskControlType.Default;
     this.minValue   = minValue;
     this.maxValue   = maxValue;
 }
Exemplo n.º 6
0
 public TaskControlOptions(TaskControlType type)
 {
     taskControlType = type;
 }