Пример #1
0
 public void AddFlowConditions()
 {
     if (this.RuleGroup == null)
     {
         this.Model.RuleGroup = new RuleGroup();
         RuleGroupViewModel vm = new RuleGroupViewModel(this.Model.RuleGroup, "Flow conditions");
         this.RuleGroup            = vm;
         this.IsExpanded           = true;
         this.RuleGroup.IsExpanded = true;
         this.RuleGroup.IsSelected = true;
     }
 }
Пример #2
0
 public void AddExecutionConditions()
 {
     if (this.RuleGroup == null)
     {
         this.Model.RuleGroup = new RuleGroup();
         RuleGroupViewModel vm = new RuleGroupViewModel(this.Model.RuleGroup, "Execution rules");
         this.RuleGroup = vm;
         //this.RaisePropertyChanged("ChildNodes");
         this.IsExpanded           = true;
         this.RuleGroup.IsExpanded = true;
         this.RuleGroup.IsSelected = true;
     }
 }
Пример #3
0
 public void RemoveExecutionConditions()
 {
     this.RuleGroup       = null;
     this.Model.RuleGroup = null;
     //this.RaisePropertyChanged("ChildNodes");
 }
Пример #4
0
 public void RemoveFlowConditions()
 {
     this.RuleGroup       = null;
     this.Model.RuleGroup = null;
 }
Пример #5
0
 private BitmapSource GetIcon(RuleGroupViewModel item)
 {
     return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Umare.Presentation;component/Resources/ExecutionConditions.png", UriKind.Absolute)));
 }