public DialogChooseParentViewModel() { SeriesChoiceForFather = new ObservableCollection <SerieViewModel>(); SelectedIndex = 0; _businessSerie = ViewModelLocator.BusinessSerie(); _businessFichier = ViewModelLocator.BusinessFichier(); }
public FichierViewModel() { _businessFichier = ViewModelLocator.BusinessFichier(); _businessSerie = ViewModelLocator.BusinessSerie(); _businessPage = ViewModelLocator.BusinessPage(); _dialogservice = ViewModelLocator.DialogService(); Childs = new ObservableCollection <PageViewModel>(); }
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; }
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>(); }
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; }
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(); }
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; } }