public DialogChooseParentViewModel()
 {
     SeriesChoiceForFather = new ObservableCollection <SerieViewModel>();
     SelectedIndex         = 0;
     _businessSerie        = ViewModelLocator.BusinessSerie();
     _businessFichier      = ViewModelLocator.BusinessFichier();
 }
Beispiel #2
0
 public FichierViewModel()
 {
     _businessFichier = ViewModelLocator.BusinessFichier();
     _businessSerie   = ViewModelLocator.BusinessSerie();
     _businessPage    = ViewModelLocator.BusinessPage();
     _dialogservice   = ViewModelLocator.DialogService();
     Childs           = new ObservableCollection <PageViewModel>();
 }
Beispiel #3
0
 public PageViewModel(Page page)
 {
     _dialogservice   = ViewModelLocator.DialogService();
     _businessFichier = ViewModelLocator.BusinessFichier();
     _businessPage    = ViewModelLocator.BusinessPage();
     Page             = page;
     IsChecked        = false;
 }
Beispiel #4
0
 public SerieViewModel()
 {
     _navigationService      = ViewModelLocator.NavigationService();
     _businessFichier        = ViewModelLocator.BusinessFichier();
     _dialogservice          = ViewModelLocator.DialogService();
     _businessSerie          = ViewModelLocator.BusinessSerie();
     Childs                  = new ObservableCollection <IHirarchicalItemViewModel>();
     this.NumberOfChildSerie = string.Format("{0} élément(s)", Childs.Count());
     Haschanged              = false;
 }
Beispiel #5
0
 public AddMultiComicViewModel(IEnumerable <string> files)
 {
     _navigationService = ViewModelLocator.NavigationService();
     _businessSerie     = ViewModelLocator.BusinessSerie();
     _businessFichier   = ViewModelLocator.BusinessFichier();
     _dialogservice     = ViewModelLocator.DialogService();
     _businessFile      = ViewModelLocator.BusinessFile();
     _businessComicVine = ViewModelLocator.BusinessComicVine();
     _businessPage      = ViewModelLocator.BusinessPage();
     Files    = files;
     Fichiers = new ObservableCollection <AddSingleComicViewModel>();
     Series   = new List <SerieViewModel>();
 }
Beispiel #6
0
        public AddSingleComicViewModel(String filepath)
        {
            _navigationService = ViewModelLocator.NavigationService();
            _businessSerie     = ViewModelLocator.BusinessSerie();
            _businessFichier   = ViewModelLocator.BusinessFichier();
            _dialogservice     = ViewModelLocator.DialogService();
            _businessFile      = ViewModelLocator.BusinessFile();
            _businessComicVine = ViewModelLocator.BusinessComicVine();
            _businessPage      = ViewModelLocator.BusinessPage();
            FilePath           = filepath;
            Name    = Path.GetFileNameWithoutExtension(FilePath);
            Fichier = new Fichier();
            Pages   = new ObservableCollection <PageViewModel>();
            Series  = new List <SerieViewModel>();

            //LoadingPages();
        }