예제 #1
0
 public NewSafetyRuleViewModel(Window window, SafetyRulesViewModel parentVM)
     : base()
 {
     this.parentVM = parentVM;
     this.Commands.AddItem("Create", t => this.Create(window), t => this.CanCreate());
 }
예제 #2
0
 private BitmapSource GetIcon(SafetyRulesViewModel item)
 {
     return(new BitmapImage(new Uri("pack://application:,,,/Lithnet.Transforms.Presentation;component/Resources/transforms.png", UriKind.Absolute)));
 }