コード例 #1
0
 public ExtractFileViewModel(string filepath)
 {
     Messenger.Default.Register <ExtractFileNotificationMessage>(this, ReceiveNotificationMessage);
     _businessFile = ViewModelLocator.BusinessFile();
     Filepath      = filepath;
     Pages         = new List <Page>();
 }
コード例 #2
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>();
 }
コード例 #3
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;
 }
コード例 #4
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();
        }