Beispiel #1
0
        public TestCasesPresenter(RenameVariableWindow renameVariablewindow, FilterWindow filterWindow, ConnectionStringWindow connectionStringWindow, TestCasesManager testCasesManager, DataTable testCases, BindingList<string> variables, BindingList<string> connectionStringNames)
        {
            this.OpenTestCasesCommand = new OpenTestCasesCommand(this);
            this.OpenTestCasesQueryCommand = new OpenTestCasesQueryCommand(this);
            this.RenameVariableCommand = new RenameVariableCommand(this, renameVariablewindow);
            this.RemoveVariableCommand = new RemoveVariableCommand(this);
            this.MoveLeftVariableCommand = new MoveLeftVariableCommand(this);
            this.MoveRightVariableCommand = new MoveRightVariableCommand(this);
            this.FilterCommand = new FilterCommand(this, filterWindow);
            this.AddConnectionStringCommand = new AddConnectionStringCommand(this, connectionStringWindow);
            this.RemoveConnectionStringCommand = new RemoveConnectionStringCommand(this);
            this.EditConnectionStringCommand = new EditConnectionStringCommand(this, connectionStringWindow);
            this.RunQueryCommand = new RunQueryCommand(this);

            this.testCasesManager = testCasesManager;
            TestCases = testCases;
            Variables = variables;
            ConnectionStringNames = connectionStringNames;
            ConnectionStringSelectedIndex = -1;
            VariableSelectedIndex = -1;
        }
 public AddConnectionStringCommand(TestCasesPresenter presenter, ConnectionStringWindow window)
 {
     this.presenter = presenter;
     this.window = window;
 }