Beispiel #1
0
 public DirectoryChangedEventArgs(ProviderServiceBase service, ProviderModel provider, DirectoryModel directory, NavigationDirection direction = NavigationDirection.Unknown)
 {
     Service   = service;
     Provider  = provider;
     Directory = directory;
     Direction = direction;
 }
Beispiel #2
0
 public SelectionChangedEventArgs(ProviderServiceBase service, AccountModelBase account, DirectoryModel directory, NavigationDirection direction = NavigationDirection.Unknown)
 {
     Service   = service;
     Account   = account;
     Directory = directory;
     Direction = direction;
 }
Beispiel #3
0
        public TreeNodeModel(ProviderServiceBase service, ProviderModel provider)
        {
            Service       = service;
            Provider      = provider;
            IconImagePath = COLLAPSED_IMAGE;
            Children      = new ObservableCollection <TreeNodeModel>();

            if (Service != null && Provider != null)
            {
                _configService = ServiceLocator.Instance.GetService <ConfigurationService>();
                _configService.ApplicationConfiguration.PropertyChanged += OnApplicationConfigChanged;
            }
        }
Beispiel #4
0
        public TreeNodeModel(ProviderServiceBase service, AccountModelBase account, ItemType?nodeType)
        {
            Service  = service;
            Account  = account;
            Children = new ObservableCollection <TreeNodeModel>();
            NodeType = nodeType;

            if (Service != null && Account != null)
            {
                _shared = ServiceLocator.Instance.GetService <SharedService>();
                _shared.ApplicationConfiguration.PropertyChanged += OnApplicationConfigChanged;
            }
        }
Beispiel #5
0
 public ProviderModel(string name, ProviderServiceBase service)
 {
     Id      = Guid.NewGuid();
     Name    = name;
     Service = service;
 }