コード例 #1
0
ファイル: TestCasesPresenter.cs プロジェクト: zyh329/nbi
        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;
        }
コード例 #2
0
 public RenameVariableCommand(TestCasesPresenter presenter, RenameVariableWindow window)
 {
     this.presenter = presenter;
     this.window = window;
 }