C# Class MTG_Scanner.VMs.MainWindowViewModel

Inheritance: Notifier.Notifier
Mostrar archivo Open project: RejectKid/MTG-Scanner Class Usage Examples

Public Methods

Method 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

Method Description
GenerateThemeData ( ) : void

Method Details

AddFileToImportList() public method

public AddFileToImportList ( bool isFoil ) : void
isFoil bool
return void

ComparePHash() public method

public ComparePHash ( MagicCard card ) : void
card MTG_Scanner.Models.MagicCard
return void

ComputePHashes() public method

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

ConvertBitMap() public method

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

MainWindowViewModel() public method

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
return System.Collections.Generic

SavePHashes() public method

public SavePHashes ( string selectedPath, ProgressDialogController dialogController ) : string
selectedPath string
dialogController MahApps.Metro.Controls.Dialogs.ProgressDialogController
return string