Exemple #1
0
        public AppEnvironment AddEnvironment(string name)
        {
            AppEnvironment environment = new AppEnvironment {
                Name = name
            };

            Environments.Add(environment);
            EnvironmentsChanged?.Invoke();
            return(environment);
        }
        private void RefreshFactories()
        {
            if (IsClosing)
            {
                return;
            }

            AllFactories   = Context?.AllFactories ?? Enumerable.Empty <IPythonInterpreterFactory>();
            CurrentFactory = Context?.CurrentFactory;
            EnvironmentsChanged?.Invoke(this, EventArgs.Empty);

            UIContext.FromUIContextGuid(GuidList.guidPythonToolbarUIContext).IsActive = Context != null;
        }
Exemple #3
0
 private void OnSettingsChanged(object sender, EventArgs e)
 {
     Debug.Assert(sender == Project);
     EnvironmentsChanged?.Invoke(this, EventArgs.Empty);
 }
 private void OnActiveInterpreterChanged(object sender, EventArgs e)
 {
     EnvironmentsChanged?.Invoke(this, EventArgs.Empty);
 }
Exemple #5
0
 private Task OnSettingsChanged(object sender, EventArgs e)
 {
     EnvironmentsChanged?.Invoke(this, EventArgs.Empty);
     return(Task.CompletedTask);
 }