Example #1
0
 public EditConnectionStringCommand(TestCasesPresenter presenter, ConnectionStringWindow window)
 {
     this.presenter = presenter;
     this.window    = window;
 }
Example #2
0
        public TestCasesPresenter(RenameVariableWindow renameVariablewindow, FilterWindow filterWindow, ConnectionStringWindow connectionStringWindow, TestCaseCollectionManager testCaseCollectionManager, 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.FilterDistinctCommand         = new FilterDistinctCommand(this);
            this.AddConnectionStringCommand    = new AddConnectionStringCommand(this, connectionStringWindow);
            this.RemoveConnectionStringCommand = new RemoveConnectionStringCommand(this);
            this.EditConnectionStringCommand   = new EditConnectionStringCommand(this, connectionStringWindow);
            this.RunQueryCommand               = new RunQueryCommand(this);

            this.testCaseCollectionManager = testCaseCollectionManager;
            TestCases                     = testCases;
            Variables                     = variables;
            ConnectionStringNames         = connectionStringNames;
            ConnectionStringSelectedIndex = -1;
            VariableSelectedIndex         = -1;
        }