Пример #1
0
 protected virtual void DestroyProvider(Component component)
 {
     ProviderFactory.ReleaseProvider(component);
 }
Пример #2
0
 protected virtual FragmentControlProvider CreateProvider(Component component)
 {
     return((FragmentControlProvider)ProviderFactory.GetProvider(component));
 }
Пример #3
0
        private static bool IsFormProviderAlreadyCreated(Form form)
        {
            var provider = (FormProvider)ProviderFactory.FindProvider(form);

            return(provider != null && provider.Navigate(NavigateDirection.Parent) != null);
        }
Пример #4
0
 public UserCustomComponent(IRawElementProviderFragment provider, FragmentControlProvider parentProvider)
 {
     Provider       = ProviderFactory.GetWrapper(this, provider);
     ParentProvider = parentProvider;
 }
Пример #5
0
 public static void RegisterComponentMappings()
 {
     ProviderFactory.RegisterComponentProviderMapper(
         typeof(ScrollBar), PerformComponentMapping);
 }
 public FragmentControlProvider GetScrollbarProvider(ScrollBar scrollbar)
 {
     return(ProviderFactory.GetProvider(scrollbar)
            as FragmentControlProvider);
 }