Пример #1
0
 public WorkFlowView()
 {
     Properties = new CustomPropertyCollection();
     Elements   = new AsyncObservableCollection <WorkFlowViewElement>();
     Events     = new List <CommandCollection>();
 }
 public WorkFlowViewElement()
 {
     Properties = new CustomPropertyCollection();
     Events     = new List <CommandCollection>();
     Properties.PropertyChanged += Properties_PropertyChanged;
 }
Пример #3
0
 public WorkFlowEvent()
 {
     CommandCollection           = new CommandCollection();
     Properties                  = new CustomPropertyCollection();
     Properties.PropertyChanged += Properties_PropertyChanged;
 }
Пример #4
0
 public WorkFlowEvent()
 {
     CommandCollection = new CommandCollection();
     Properties        = new CustomPropertyCollection();
 }
Пример #5
0
 public WorkFlowCommand()
 {
     Properties = new CustomPropertyCollection();
 }
Пример #6
0
        public WorkFlow()
        {
            Views       = new ObservableCollection <WorkFlowView>();
            Variables   = new VariableCollection();
            Events      = new AsyncObservableCollection <WorkFlowEvent>();
            Id          = Guid.NewGuid().ToString();
            Name        = "New Workflow";
            Properties  = new CustomPropertyCollection();
            Description = "";
            Version     = "0.0.1";

            Properties.Add(new CustomProperty()
            {
                Name         = "Author",
                PropertyType = CustomPropertyType.String
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "Forum",
                PropertyType = CustomPropertyType.String
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "License url",
                PropertyType = CustomPropertyType.String
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "BaseColorScheme",
                PropertyType = CustomPropertyType.ValueList,
                ValueList    = { "Light", "Dark" },
                Value        = "Light",
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "ColorScheme",
                PropertyType = CustomPropertyType.ValueList,
                ValueList    = { "yellow", "amber", "deeporange", "lightblue", "teal", "cyan", "pink", "green", "deeppurple", "indigo", "lightgreen", "blue", "lime", "red", "orange", "purple", "bluegrey", "grey", "brown" },
                Value        = "blue",
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "HideTileBar",
                PropertyType = CustomPropertyType.Bool
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "FullScreen",
                PropertyType = CustomPropertyType.Bool
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "CardBackground",
                PropertyType = CustomPropertyType.File
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "PreviewSize",
                PropertyType = CustomPropertyType.Number,
                Value        = "1090",
                Description  = "With 0 will load the original image, \nany other number the image with will be resize befor preview, \nthis can improve drastically the loading speed \nbut with some action can create diferent preview that the exported image"
            });
            Properties.Add(new CustomProperty()
            {
                Name         = "HelpFile",
                PropertyType = CustomPropertyType.File,
                Description  = "Documentation file can be show via Worflow Action->ShowHelp",
                Value        = ""
            });
        }