public SidePanelViewModel(SQLDataProducer.Model.ApplicationModel model) { this.Model = model; ConfigureAndRunExecutionCommand = new DelegateCommand(ShowConfigureAndRunWindow); StopExecutionCommand = new DelegateCommand(StopRunningExecution); EditPostScriptCommand = new DelegateCommand(ShowWindowToEditPostScript); EditPreScriptCommand = new DelegateCommand(ShowWindoToEditPreScript); }
public MainWindowViewModel(ExecutionTaskOptions options) { Model = new SQLDataProducer.Model.ApplicationModel(); Model.Options = options; ExecutionOrderVM = new ExecutionOrderViewModel(Model); ExecutionDetailsVM = new ExecutionDetailsViewModel(Model); SidePanelVM = new SidePanelViewModel(Model); OpenSqlConnectionBuilderCommand = new DelegateCommand(ShowSQLConnectionStringBuilder); LoadTablesCommand = new DelegateCommand(LoadTables); SaveCommand = new DelegateCommand(SaveExecutionListToFile); LoadCommand = new DelegateCommand(LoadExecutionListFromFile); RunCommand = new DelegateCommand(RunExecution); }
public ExecutionOrderViewModel(SQLDataProducer.Model.ApplicationModel model) { Model = model; MoveItemRightCommand = new DelegateCommand <TableEntity>(AddSelectedItemToExecutionItemList); MoveAllItemsRightCommand = new DelegateCommand(AddAllTablesToExecutionItemList); MoveAllItemsLeftCommand = new DelegateCommand(ClearExecutionItemList); MoveItemUpCommand = new DelegateCommand(MoveSelectedExecutionItemUp); MoveItemDownCommand = new DelegateCommand(MoveSelectedExecutionItemDown); MoveItemLeftCommand = new DelegateCommand(RemoveSelectedExecutionItemFromExecutionItemList); CloneExecutionItemCommand = new DelegateCommand <ExecutionNode>(CloneSelectedExecutionItem); ClearSearchCriteraCommand = new DelegateCommand(ClearSearchCriteriaValue); MoveUpWithTheSelectorCommand = new DelegateCommand(MoveTheTableSelectorUp); MoveDownWithTheSelectorCommand = new DelegateCommand(MoveTheTableSelectorDown); CreateTreeWithTableTableAsRootCommand = new DelegateCommand <TableEntity>(CreateTreeWithTableAsRoot); CreateTreeWithTableAsLeafCommand = new DelegateCommand <TableEntity>(CreateTreeWithTableAsLeaf); }