public DialogChooseParentViewModel()
 {
     SeriesChoiceForFather = new ObservableCollection <SerieViewModel>();
     SelectedIndex         = 0;
     _businessSerie        = ViewModelLocator.BusinessSerie();
     _businessFichier      = ViewModelLocator.BusinessFichier();
 }
예제 #2
0
 public FichierViewModel()
 {
     _businessFichier = ViewModelLocator.BusinessFichier();
     _businessSerie   = ViewModelLocator.BusinessSerie();
     _businessPage    = ViewModelLocator.BusinessPage();
     _dialogservice   = ViewModelLocator.DialogService();
     Childs           = new ObservableCollection <PageViewModel>();
 }
예제 #3
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;
 }
예제 #4
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>();
 }
예제 #5
0
 public AddUpdateSerieViewModel()
 {
     Serie              = null;
     _imgByte           = null;
     _dialogservice     = ViewModelLocator.DialogService();
     _navigationService = ViewModelLocator.NavigationService();
     _businessSerie     = ViewModelLocator.BusinessSerie();
     _businessFile      = ViewModelLocator.BusinessFile();
     //GoBackPage = new RelayCommand(() => GoBack());
     //CancelPage = new RelayCommand(() => GoBack());
     //SavePage = new RelayCommand(async () => await CreateSerie());
     TexChangedEvent = new RelayCommand(() => LoadingImg());
     ChooseFile      = new RelayCommand(() => ChooseImgFile());
     Serie           = new Serie();
     Serie.ID        = -1;
 }
예제 #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();
        }
예제 #7
0
 public CreateSerieViewModel(IFrameNavigationService navigationService, IBusinessSerie businessSerie)
 {
     Serie              = null;
     _imgByte           = null;
     _navigationService = navigationService;
     _businessSerie     = businessSerie;
     GoBackPage         = new RelayCommand(() => GoBack());
     CancelPage         = new RelayCommand(() => GoBack());
     SavePage           = new RelayCommand(async() => await CreateSerie());
     TexChangedEvent    = new RelayCommand(() => LoadingImg());
     if (_navigationService.Parameter == null)
     {
         Serie    = new Serie();
         Serie.ID = -1;
     }
     else
     {
         Serie = _navigationService.Parameter as Serie;
     }
 }