コード例 #1
0
        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();
            }
            
        }