예제 #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)));
 }