public ExtractFileViewModel(string filepath) { Messenger.Default.Register <ExtractFileNotificationMessage>(this, ReceiveNotificationMessage); _businessFile = ViewModelLocator.BusinessFile(); Filepath = filepath; Pages = new List <Page>(); }
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(); }