Example #1
0
 public TriggerNodeViewModel(
     CosmosTrigger trigger,
     IContainerContext context,
     NonLeafTreeNodeViewModel parent,
     ScriptCommands <CosmosTrigger> commands,
     IMessenger messenger)
     : base(trigger, context, parent, commands, messenger)
 {
 }
Example #2
0
 public StoredProcedureNodeViewModel(
     IContainerContext context,
     CosmosStoredProcedure storedProcedure,
     NonLeafTreeNodeViewModel parent,
     ScriptCommands <CosmosStoredProcedure> commands,
     IMessenger messenger)
     : base(storedProcedure, context, parent, commands, messenger)
 {
 }
 public UserDefinedFunctionNodeViewModel(
     CosmosUserDefinedFunction udf,
     IContainerContext context,
     NonLeafTreeNodeViewModel parent,
     ScriptCommands <CosmosUserDefinedFunction> commands,
     IMessenger messenger)
     : base(udf, context, parent, commands, messenger)
 {
 }
Example #4
0
 protected ScriptFolderNodeViewModel(
     string text,
     IContainerContext context,
     NonLeafTreeNodeViewModel parent,
     IViewModelFactory viewModelFactory)
 {
     Parent           = parent;
     Text             = text;
     Context          = context;
     ViewModelFactory = viewModelFactory;
 }
Example #5
0
 public StoredProceduresFolderNodeViewModel(
     IContainerContext context,
     NonLeafTreeNodeViewModel parent,
     ScriptCommands <CosmosStoredProcedure> commands,
     IViewModelFactory viewModelFactory)
     : base("Stored procedures", context, parent, viewModelFactory)
 {
     Commands = new[]
     {
         new CommandViewModel($"New stored procedure", commands.CreateCommand, this),
         CommandViewModel.Separator(),
         new CommandViewModel("Refresh", RefreshCommand)
     };
 }
Example #6
0
 public UserDefinedFunctionsFolderNodeViewModel(
     IContainerContext containerContext,
     NonLeafTreeNodeViewModel parent,
     ScriptCommands <CosmosUserDefinedFunction> commands,
     IViewModelFactory viewModelFactory)
     : base("User-defined functions", containerContext, parent, viewModelFactory)
 {
     Commands = new[]
     {
         new CommandViewModel($"New user-defined function", commands.CreateCommand, this),
         CommandViewModel.Separator(),
         new CommandViewModel("Refresh", RefreshCommand),
     };
 }
 public TriggersFolderNodeViewModel(
     IContainerContext containerContext,
     NonLeafTreeNodeViewModel parent,
     ScriptCommands <CosmosTrigger> commands,
     IViewModelFactory viewModelFactory)
     : base("Triggers", containerContext, parent, viewModelFactory)
 {
     Commands = new[]
     {
         new CommandViewModel($"New trigger", commands.CreateCommand, this),
         CommandViewModel.Separator(),
         new CommandViewModel("Refresh", RefreshCommand)
     };
 }
Example #8
0
 public PlaceholderTreeNodeViewModel(NonLeafTreeNodeViewModel parent)
 {
     Parent = parent;
 }
Example #9
0
 public ErrorTreeNodeViewModel(NonLeafTreeNodeViewModel parent, Exception exception)
 {
     Parent = parent;
     Text   = "Error: " + exception.Message;
 }