public ConfigureForm(ConfigureViewModel model) : this()
        {
            _model = model;
            _model.PropertyChanged += _model_PropertyChanged;

            RefreshApiKey();
            RefreshUseProxy();
            LoadBuckets();
        }
示例#2
0
        public ConfigureForm(ConfigureViewModel model) : this()
        {
            _model = model;
            _model.PropertyChanged += _model_PropertyChanged;

            RefreshApiKey();
            RefreshUseProxy();
            LoadBuckets();
        }
        public void ConfigureRunscope()
        {
            var model = new ConfigureViewModel(_runscopeSettings);
            var form  = new ConfigureForm(model);

            var result = form.ShowDialog();

            if (result == DialogResult.OK)
            {
                _runscopeSettings.Bucket   = model.SelectedBucketKey;
                _runscopeSettings.ApiKey   = model.ApiKey;
                _runscopeSettings.UseProxy = model.UseProxy;

                _Client = CreateHttpClient();
            }
        }
        public void ConfigureRunscope()
        {
           
            var model = new ConfigureViewModel(_runscopeSettings);
            var form = new ConfigureForm(model);
         
            var result = form.ShowDialog();
            if (result == DialogResult.OK)
            {

                _runscopeSettings.Bucket = model.SelectedBucketKey;
                _runscopeSettings.ApiKey = model.ApiKey;
                _runscopeSettings.UseProxy = model.UseProxy;

                _Client = CreateHttpClient();
            }
            
        }