コード例 #1
0
 public BenchmarkShellViewModel(CommandBindingCollection commandBindings, BenchmarkShell shell, GunViewModel gun)
     : base(commandBindings, shell, gun)
 {
 }
コード例 #2
0
 public static ShellViewModel CreateShell(CommandBindingCollection commandBindings, IShell shell, GunViewModel gun)
 {
     if (shell is BenchmarkShell)
     {
         return(new BenchmarkShellViewModel(commandBindings, (BenchmarkShell)shell, gun));
     }
     return(new ShellViewModel(commandBindings, shell, gun));
 }