示例#1
0
        private void ShowRunDialog()
        {
            FormRun form = new FormRun();

            form.Profile = this.profile;
            DialogResult dr = form.ShowDialog();

            if (dr == DialogResult.OK)
            {
                if (form.Operation == null)
                {
                    SetStatus(new ApplicationException("No opeation selected"));
                    return;
                }
                if (this.creds == null)
                {
                    ShowCredentialsDialog();
                }
                foreach (var region in form.SelectedRegions)
                {
                    Operation op = form.Operation;
                    op.Proxy = this.Proxy;
                    scanner.Invokations.Enqueue(new OperationInvokation(op, region, this.creds, Configuration.Instance.PageSize));
                }
                Start();
            }
        }
示例#2
0
        private void ShowRunDialog()
        {
            FormRun form = new FormRun();

            form.Profile = this.profile;
            DialogResult dr = form.ShowDialog();

            if (dr == DialogResult.OK)
            {
                if (form.Operation == null)
                {
                    throw new ApplicationException("No opeation selected");
                }
                if (this.creds == null)
                {
                    ShowCredentialsDialog();
                }
                WebProxy proxy = Configuration.Instance.GetWebProxy();
                foreach (var region in form.SelectedRegions)
                {
                    scanner.Invokations.Enqueue(form.Operation.Clone(proxy, region, this.creds, Configuration.Instance.PageSize));
                }
                Start();
            }
        }