コード例 #1
0
ファイル: Analyzer.cs プロジェクト: darakeon/sync
        public Analyzer(String mainPath, String comparePath, AddRow addRow)
        {
            this.mainPath    = mainPath;
            this.comparePath = comparePath;

            this.addRow = addRow;
        }
コード例 #2
0
        public void AddRowCancel()
        {
            linkCPFolder.Click();
            //System.Threading.Thread.Sleep(3000);
            if (driver.IsElementExists(AddRow))
            {
                AddRow.Click();
                new WebDriverWait(driver, TimeSpan.FromSeconds(100)).Until(ExpectedConditions.ElementExists((By.Id("btnClosePopup"))));
                btnClosePopup.Click();
            }

            //new WebDriverWait(driver, TimeSpan.FromSeconds(1000)).Until(ExpectedConditions.ElementExists((By.CssSelector("#btnAdd > div > span"))));
        }
コード例 #3
0
ファイル: UAUserInterface.cs プロジェクト: timshao1120/wtgw
    public UAUserInterface(UAEngine xa)
    {
        InitializeComponent();

        //When xa is loaded settings are loaded..
        this.xa = xa;

        //SetState sets up the different check boxes based on the settings.
        SetState();

        //Setting the textbox with the default value.
        this.tbCanary.Text = xa.Settings.canary;

        //Setup the databinding for results view
        this.matches = new SortableBindingList<ResponseResult>();
        this.view = new BindingListView<ResponseResult>(this.matches);
        this.ResultsDataGridView.DataSource = this.view;

        //Some other defaults
        this.lbDomainFilters.DataSource = xa.Settings.domainFilters;
        this.dgUnicodeTestMappings.DataSource = xa.Settings.UnicodeTestMappings.GetAll();

        //Add the default items to the filter ComboBox.
        this.cbFilter.Items.Add("All");
        this.cbFilter.Items.Add("Transformable");
        this.cbFilter.Items.Add("Traditional");
        this.cbFilter.Items.Add("Overlong");
        this.cbFilter.SelectedItem = "Traditional";

        // Initialize the throttle UI values
        this.tbBatchSize.Text = String.Format("{0}", this.xa.Settings.throttleBatchSize);
        this.tbDelayPeriod.Text = String.Format("{0}", this.xa.Settings.throttleDelayPeriod);

        //Delegate method to ensure when adding data to the datasource it origanates from the creating thread.
        ar = new AddRow(AddRowMethod);

        //Set columns to sortable
        this.scas = new SetColumnAutoSort(setColumnAutoSort);
        this.Dock = DockStyle.Fill;
    }
コード例 #4
0
    public UAUserInterface(UAEngine xa)
    {
        InitializeComponent();

        //When xa is loaded settings are loaded..
        this.xa = xa;

        //SetState sets up the different check boxes based on the settings.
        SetState();

        //Setting the textbox with the default value.
        this.tbCanary.Text = xa.Settings.canary;

        //Setup the databinding for results view
        this.matches = new SortableBindingList <ResponseResult>();
        this.view    = new BindingListView <ResponseResult>(this.matches);
        this.ResultsDataGridView.DataSource = this.view;

        //Some other defaults
        this.lbDomainFilters.DataSource       = xa.Settings.domainFilters;
        this.dgUnicodeTestMappings.DataSource = xa.Settings.UnicodeTestMappings.GetAll();

        //Add the default items to the filter ComboBox.
        this.cbFilter.Items.Add("All");
        this.cbFilter.Items.Add("Transformable");
        this.cbFilter.Items.Add("Traditional");
        this.cbFilter.Items.Add("Overlong");
        this.cbFilter.SelectedItem = "Traditional";

        // Initialize the throttle UI values
        this.tbBatchSize.Text   = String.Format("{0}", this.xa.Settings.throttleBatchSize);
        this.tbDelayPeriod.Text = String.Format("{0}", this.xa.Settings.throttleDelayPeriod);

        //Delegate method to ensure when adding data to the datasource it origanates from the creating thread.
        ar = new AddRow(AddRowMethod);

        //Set columns to sortable
        this.scas = new SetColumnAutoSort(setColumnAutoSort);
        this.Dock = DockStyle.Fill;
    }