C# Class Generate_DB_Data.CreateData

Show file Open project: rechc/KinectMiniApps

Public Methods

Method Description
ByteToImage ( byte bytes ) : BitmapImage
CreateData ( int entryCount ) : System
ImageToByte ( BitmapImage imageSource ) : byte
StringToByteArray ( String hex ) : byte[]

Private Methods

Method Description
CreateCountryEntries ( ) : void
CreateExtendedInfo ( int j ) : ExtendedInformation
CreateTravelOffer ( int i ) : void
FlushDbData ( ) : void
GetRandomBool ( ) : bool
GetRandomDate ( ) : System.DateTime
GetRandomDate ( int startYear, int endYear ) : System.DateTime
GetRandomInteger ( int min, int max ) : int
SaveToDb ( ) : void

Method Details

ByteToImage() public method

public ByteToImage ( byte bytes ) : BitmapImage
bytes byte
return BitmapImage

CreateData() public method

public CreateData ( int entryCount ) : System
entryCount int
return System

ImageToByte() public method

public ImageToByte ( BitmapImage imageSource ) : byte
imageSource BitmapImage
return byte

StringToByteArray() public static method

public static StringToByteArray ( String hex ) : byte[]
hex String
return byte[]