示例#1
0
        public MetaDataView(IEventAggregator eventAggregator)
        {
            InitializeComponent();

            MetaDataViewModel = new MetaDataViewModel(MediaFileWatcher.Instance, eventAggregator);

            DataContext = MetaDataViewModel;

            TabName            = "Metadata";
            TabIsSelected      = true;
            TabMargin          = new Thickness(2);
            TabBorderThickness = new Thickness(2);
            TabBorderBrush     = ClassicBorderDecorator.ClassicBorderBrush;
        }
示例#2
0
        public MetaDataView(IEventAggregator eventAggregator)
        {
            InitializeComponent();

            MetaDataViewModel = new MetaDataViewModel(MediaFileWatcher.Instance, eventAggregator);
                                                
            DataContext = MetaDataViewModel;

            TabName = "Metadata";
            TabIsSelected = true;
            TabMargin = new Thickness(2);
            TabBorderThickness = new Thickness(2);
            TabBorderBrush = ClassicBorderDecorator.ClassicBorderBrush;
        }
示例#3
0
        public MetaDataUpdateViewModelAsyncState(MetaDataViewModel vm)
        {
            Location           = vm.Location;
            Author             = vm.Author;
            AuthorEnabled      = vm.AuthorEnabled;
            BatchMode          = vm.BatchMode;
            Copyright          = vm.Copyright;
            CopyrightEnabled   = vm.CopyrightEnabled;
            Creation           = vm.Creation;
            CreationEnabled    = vm.CreationEnabled;
            Description        = vm.Description;
            DescriptionEnabled = vm.DescriptionEnabled;
            Filename           = vm.Filename;
            ReplaceFilename    = vm.ReplaceFilename;
            IsRegexEnabled     = vm.IsRegexEnabled;
            IsEnabled          = vm.IsEnabled;

            lock (vm.Items)
            {
                ItemList = new List <MediaFileItem>(vm.Items);
            }

            Rating          = vm.Rating;
            RatingEnabled   = vm.RatingEnabled;
            Title           = vm.Title;
            TitleEnabled    = vm.TitleEnabled;
            IsImported      = vm.IsImported;
            ImportedEnabled = vm.ImportedEnabled;
            Tags            = new List <Tag>(vm.Tags);
            AddTags         = new List <Tag>(vm.AddTags);
            RemoveTags      = new List <Tag>(vm.RemoveTags);

            IsGeoTagEnabled = vm.IsGeotagEnabled;
            Latitude        = vm.Geotag.LatDecimal;
            Longitude       = vm.Geotag.LonDecimal;
        }
示例#4
0
 public void OnNavigatedTo(NavigationContext navigationContext)
 {
     MetaDataViewModel.OnNavigatedTo(navigationContext);
 }
        public MetaDataUpdateViewModelAsyncState(MetaDataViewModel vm)
        {
            Location = vm.Location;
            Author = vm.Author;
            AuthorEnabled = vm.AuthorEnabled;
            BatchMode = vm.BatchMode;
            Copyright = vm.Copyright;
            CopyrightEnabled = vm.CopyrightEnabled;
            Creation = vm.Creation;
            CreationEnabled = vm.CreationEnabled;
            Description = vm.Description;
            DescriptionEnabled = vm.DescriptionEnabled;
            Filename = vm.Filename;
            ReplaceFilename = vm.ReplaceFilename;
            IsRegexEnabled = vm.IsRegexEnabled;
            IsEnabled = vm.IsEnabled;

            lock (vm.Items)
            {
                ItemList = new List<MediaFileItem>(vm.Items);
            }

            Rating = vm.Rating;
            RatingEnabled = vm.RatingEnabled;
            Title = vm.Title;
            TitleEnabled = vm.TitleEnabled;
            IsImported = vm.IsImported;
            ImportedEnabled = vm.ImportedEnabled;
            Tags = new List<Tag>(vm.Tags);
            AddTags = new List<Tag>(vm.AddTags);
            RemoveTags = new List<Tag>(vm.RemoveTags);

            IsGeoTagEnabled = vm.IsGeotagEnabled;
            Latitude = vm.Geotag.LatDecimal;
            Longitude = vm.Geotag.LonDecimal;
        }