Hi, i have a class, with 2 functions in it. I am calling them like normal, but it seems to error.

My class:

c# Code:
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Drawing;
  6.  
  7. namespace WebBrowser
  8. {
  9.     class Mypicssave
  10.     {
  11.         public static void Mypictures(Bitmap thumbnail)
  12.         {
  13.             String SaveName = DateTime.Now.ToShortDateString().Replace("/", "-") + ".png";
  14.             thumbnail.Save(Environment.SpecialFolder.MyPictures + @"\" + SaveName, System.Drawing.Imaging.ImageFormat.Png);
  15.         }
  16.         public static void Specicifed(Bitmap thumbnail)
  17.         {
  18.             String SaveName = DateTime.Now.ToShortDateString().Replace("/", "-") + ".png";
  19.             thumbnail.Save(Properties.Settings.Default.specifiedfolder + @"\" + SaveName, System.Drawing.Imaging.ImageFormat.Png);
  20.         }
  21.  
  22.     }
  23.  
  24. }


And my error:

http://true.zxq.net/error.PNG

Any chance someone could help me?

The full source with the error in calling the class in here:
http://pastebin.com/f5826d534


Thanks in advance