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; }
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); }
private Task OnSettingsChanged(object sender, EventArgs e) { EnvironmentsChanged?.Invoke(this, EventArgs.Empty); return(Task.CompletedTask); }