Ejemplo n.º 1
0
    public static IVsUIShell GetIVsUIShell(IServiceProvider serviceProvider)
    {
        IVsDataHostService hostService = serviceProvider.GetService(
            typeof(IVsDataHostService)) as IVsDataHostService;

        return(hostService.GetService <IVsUIShell>());
    }
Ejemplo n.º 2
0
    private static void ActuallyUpdateUI(IVsDataHostService hostService)
    {
        IVsUIShell uiShell = hostService.GetService <IVsUIShell>();

        uiShell.UpdateCommandUI(0); // fImmediateUpdate == false
    }
Ejemplo n.º 3
0
 public static IVsUIShell GetIVsUIShell(IVsDataHostService hostService)
 {
     return(hostService.GetService <IVsUIShell>());
 }