public AcheievementGet(Achievement get)
 {
     InitializeComponent();
     if(!string.IsNullOrEmpty(get.ResourceName))
         this.pictureBox1.Image = new Bitmap(
             System.Reflection.Assembly.GetEntryAssembly().
                 GetManifestResourceStream("Properties.Resources." + get.ResourceName));
     this.lblTitle.Text = get.Title;
     if (!get.Unlocked)
     {
         this.label1.Text = "Achievement progress!";
     }
     this.Visible = false;
 }
 public static void Trigger(Achievement ToTrigger)
 {
     if (!ToTrigger.Unlocked)
     {
         F.DisplayAchievement(ToTrigger);
         ToTrigger.Unlocked = true;
     }
 }
 public static void ProgressDisplay(Achievement ToProgress)
 {
 }
 public static void AddProgress(Achievement ToProgress, int Amount)
 {
     if (!ToProgress.Unlocked)
     {
         if (ToProgress.Progress + Amount >= ToProgress.UnlockProgress)
         {
             Trigger(ToProgress);
         }
         else
         {
             if (ToProgress.Progress % ToProgress.ProgressIncrement != (ToProgress.Progress + Amount) % ToProgress.ProgressIncrement)
             {
                 ProgressDisplay(ToProgress);
             }
         }
         ToProgress.Progress += Amount;
     }
 }