C# Class MTG_Scanner.VMs.MainWindowViewModel

Inheritance: Notifier.Notifier
Afficher le fichier Open project: RejectKid/MTG-Scanner Class Usage Examples

Méthodes publiques

Méthode Description
AddFileToImportList ( bool isFoil ) : void
ComparePHash ( MagicCard card ) : void
ComputePHashes ( string selectedPath, ProgressDialogController dialogController ) : void
ConvertBitMap ( Image cameraBitmap ) : System.Windows.Media.ImageSource

Converts a Bitmap image to an image source and freezes the img

MainWindowViewModel ( IUtil util, IXmlFileCreator xmlFileCreator, IWebcamController webcamController, ICardDatabase cardDatabase, ICardImportFileCreator cardImportFileCreator ) : System.Collections.Generic
SavePHashes ( string selectedPath, ProgressDialogController dialogController ) : string

Private Methods

Méthode Description
GenerateThemeData ( ) : void

Method Details

AddFileToImportList() public méthode

public AddFileToImportList ( bool isFoil ) : void
isFoil bool
Résultat void

ComparePHash() public méthode

public ComparePHash ( MagicCard card ) : void
card MTG_Scanner.Models.MagicCard
Résultat void

ComputePHashes() public méthode

public ComputePHashes ( string selectedPath, ProgressDialogController dialogController ) : void
selectedPath string
dialogController MahApps.Metro.Controls.Dialogs.ProgressDialogController
Résultat void

ConvertBitMap() public méthode

Converts a Bitmap image to an image source and freezes the img
public ConvertBitMap ( Image cameraBitmap ) : System.Windows.Media.ImageSource
cameraBitmap System.Drawing.Image
Résultat System.Windows.Media.ImageSource

MainWindowViewModel() public méthode

public MainWindowViewModel ( IUtil util, IXmlFileCreator xmlFileCreator, IWebcamController webcamController, ICardDatabase cardDatabase, ICardImportFileCreator cardImportFileCreator ) : System.Collections.Generic
util IUtil
xmlFileCreator IXmlFileCreator
webcamController IWebcamController
cardDatabase ICardDatabase
cardImportFileCreator ICardImportFileCreator
Résultat System.Collections.Generic

SavePHashes() public méthode

public SavePHashes ( string selectedPath, ProgressDialogController dialogController ) : string
selectedPath string
dialogController MahApps.Metro.Controls.Dialogs.ProgressDialogController
Résultat string