

Main Module: C:\Program Files\Google\google_appengine\dev_appserver.py
Arguments: "${project_loc}/src"
--port=8080
private string FormatByteSize(long length)
{
const int KB = 1024;
const int MB = 1024 * KB;
const int GB = 1024 * MB;
if (length > GB)
{
return (length / GB).ToString("0.00") + " GB";
}
else if (length > MB)
{
return (length / MB).ToString("0.00") + " MB";
}
else if (length > KB)
{
return (length / KB).ToString("0.00") + " KB";
}
return length.ToString()+" Bytes";
}
public partial class Page : UserControl
{
public Page()
{
InitializeComponent();
App.Current.UnhandledException += new EventHandler(Current_UnhandledException);
}
void Current_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
//handle exception here. like showing a message box
}
}