C# Class MiniProfileDownloader.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Mostra file Open project: FatherFoxxy/CSharpTradeOffers

Public Methods

Method Description
GetInput ( string question, string title ) : string
MainWindow ( ) : System
ToBitmapSource ( Bitmap source ) : System.Windows.Media.Imaging.BitmapSource

Converts a System.Drawing.Bitmap into a WPF BitmapSource.

Uses GDI to do the conversion. Hence the call to the marshalled DeleteObject.

Private Methods

Method Description
ConvertHtmlToImage ( string html ) : Bitmap
GoButton_Click ( object sender, RoutedEventArgs e ) : void
ParseId ( ) : SteamId
RepairBitmap ( Bitmap bmp ) : Bitmap

Method Details

GetInput() public method

public GetInput ( string question, string title ) : string
question string
title string
return string

MainWindow() public method

public MainWindow ( ) : System
return System

ToBitmapSource() public static method

Converts a System.Drawing.Bitmap into a WPF BitmapSource.
Uses GDI to do the conversion. Hence the call to the marshalled DeleteObject.
public static ToBitmapSource ( Bitmap source ) : System.Windows.Media.Imaging.BitmapSource
source System.Drawing.Bitmap The source bitmap.
return System.Windows.Media.Imaging.BitmapSource