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();
        }
Пример #3
0
        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();
            }
        }
Пример #4
0
        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();
            }
            
        }