Пример #1
0
        private async Task<string> GetBackgroundColorAsync(IHelpVisualComponent component, RHostClientHelpTestApp clientApp) {
            string color = "red";

            await WaitForReadyAndRenderedAsync(clientApp);
            await UIThreadHelper.Instance.InvokeAsync(() => {
                IHTMLElement2 body = component.Browser.Document.Body.DomElement as IHTMLElement2;
                color = body.currentStyle.backgroundColor as string;
            });

            return color;
        }
Пример #2
0
        private async Task <string> GetBackgroundColorAsync(IHelpVisualComponent component, RHostClientHelpTestApp clientApp)
        {
            string color = "red";

            await clientApp.WaitForReadyAndRenderedAsync(DoIdle, nameof(HelpTest));

            await UIThreadHelper.Instance.InvokeAsync(() => {
                IHTMLElement2 body = component.Browser.Document.Body.DomElement as IHTMLElement2;
                color = body.currentStyle.backgroundColor as string;
            });

            return(color);
        }
Пример #3
0
 public HelpPreviousCommand(IHelpVisualComponent component) :
     base(new CommandId(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpPrevious)) {
     _component = component;
 }
Пример #4
0
 public HelpHomeCommand(IHelpVisualComponent component) :
     base(new CommandId(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpHome)) {
 }
Пример #5
0
 public HelpRefreshCommand(IHelpVisualComponent component) :
     base(new CommandId(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpRefresh))
 {
     _component = component;
 }
Пример #6
0
 public HelpRefreshCommand(IHelpVisualComponent component)
 {
     _component = component;
 }
Пример #7
0
 public HelpHomeCommand(IHelpVisualComponent component) :
     base(new CommandId(RGuidList.RCmdSetGuid, RPackageCommandId.icmdHelpHome))
 {
 }
Пример #8
0
 public HelpNextCommand(IHelpVisualComponent component)
 {
     _component = component;
 }
Пример #9
0
 public HelpPreviousCommand(IHelpVisualComponent component)
 {
     _component = component;
 }