Example #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;
        }
Example #2
0
 public RenameVariableCommand(TestCasesPresenter presenter, RenameVariableWindow window)
 {
     this.presenter = presenter;
     this.window    = window;
 }
Example #3
0
 void doRenameVariable(string variableName)
 {
     renameVariableWindowLive = (RenameVariableWindow)EditorWindow.GetWindow(typeof(RenameVariableWindow));
     renameVariableWindowLive.variableToRename = variableName;
     renameVariableWindowLive.data = sequencerData;
 }