public ProjectModuleDescription(string title, string documentType, string group, IFilterTreeViewModel filterTreeViewModel)
     : base(title, documentType, group)
 {
     if (title == "Vehículos")
     {
         string newTitle = "Vehiculos";
         ImageSource = (ImageSource) new SvgImageSourceExtension()
         {
             Uri = new Uri(string.Format(@"pack://*****:*****@"pack://application:,,,/NextBO.Wpf;component/Resources/Modules/{0}.svg", newTitle)), Size = new System.Windows.Size(24, 24)
         }
         .ProvideValue(null);
     }
     else
     {
         ImageSource = (ImageSource) new SvgImageSourceExtension()
         {
             Uri = new Uri(string.Format(@"pack://application:,,,/NextBO.Wpf;component/Resources/Modules/{0}.svg", title)), Size = new System.Windows.Size(24, 24)
         }
         .ProvideValue(null);
     }
     FilterTreeViewModel = filterTreeViewModel;
 }
Exemplo n.º 2
0
 public FilterCategory(string name, IFilterTreeViewModel filterTreeViewModel, ObservableCollection <FilterItem> filterItems, bool isCustom = false)
 {
     Name                = name;
     FilterItems         = filterItems;
     FilterTreeViewModel = filterTreeViewModel;
     IsCustom            = isCustom;
 }
 public DevAVDbModuleDescription(string title, string documentType, string group, IFilterTreeViewModel filterTreeViewModel, Func <DevAVDbModuleDescription, object> peekCollectionViewModelFactory = null)
     : base(title, documentType, group, peekCollectionViewModelFactory)
 {
     //ImageSource = (ImageSource)new SvgImageSourceExtension() { Uri = new Uri(string.Format(@"/Resources/Modules/{0}.svg", title)), Size = new System.Windows.Size(24, 24) }
     //.ProvideValue(null);
     FilterTreeViewModel = filterTreeViewModel;
 }
 public DevAVDbModuleDescription(string title, string documentType, string group, IFilterTreeViewModel filterTreeViewModel, Func <DevAVDbModuleDescription, object> peekCollectionViewModelFactory = null)
     : base(title, documentType, group, peekCollectionViewModelFactory)
 {
     ImageSource = (ImageSource) new SvgImageSourceExtension()
     {
         Uri = new Uri(string.Format(@"pack://application:,,,/DevExpress.OutlookInspiredApp.Wpf;component/Resources/Modules/{0}.svg", title)), Size = new System.Windows.Size(24, 24)
     }
     .ProvideValue(null);
     FilterTreeViewModel = filterTreeViewModel;
 }
 public DevAVDbModuleDescription(string title, string documentType, string group, IFilterTreeViewModel filterTreeViewModel = null)
     : base(title, documentType, group, null)
 {
     FilterTreeViewModel = filterTreeViewModel;
 }
Exemplo n.º 6
0
 public DevAVDbModuleDescription(string title, string documentType, string group, IFilterTreeViewModel filterTreeViewModel, Func <DevAVDbModuleDescription, object> peekCollectionViewModelFactory = null)
     : base(title, documentType, group, peekCollectionViewModelFactory)
 {
     FilterTreeViewModel = filterTreeViewModel;
 }
 public static FilterItem Create(int entitiesCount, string name, CriteriaOperator filterCriteria, string imageUri, IFilterTreeViewModel filterTreeViewModel)
 {
     return(ViewModelSource.Create(() => new FilterItem(entitiesCount, name, filterCriteria, imageUri, filterTreeViewModel)));
 }
 protected FilterItem(int entitiesCount, string name, CriteriaOperator filterCriteria, string imageUri, IFilterTreeViewModel filterTreeViewModel)
 {
     this.Name                = name;
     this.FilterCriteria      = filterCriteria;
     this.ImageUri            = imageUri;
     this.FilterTreeViewModel = filterTreeViewModel;
     Update(entitiesCount);
 }
 public DevAVDbModuleDescription(string title, string documentType, string group, IFilterTreeViewModel filterTreeViewModel)
     : base(title, documentType, group, null)
 {
     ImageSource         = new Uri(string.Format(@"pack://application:,,,/DevExpress.HybridApp.Wpf;component/Resources/Menu/{0}.png", title));
     FilterTreeViewModel = filterTreeViewModel;
 }