/// <summary>
 /// Handles the finish of the work
 /// </summary>
 private void WorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
 {
     if (((Boolean)e.Result))
     {
         if (!File.Exists(FileNameHelper.SettingData))
         {
             SettingObject settings = SettingObject.GetDefaultSettings();
             MainForm.Instance.AppSettings = settings;
         }
         Globals.Settings.LatestCommand = this.commands.LatestCommand;
         this.Close();
     }
     else
     {
         this.infoLabel.Text     = TextHelper.GetString("Info.InitFailed");
         this.pictureBox.Click  += new EventHandler(this.FirstRunDialogClick);
         this.progressBar.Click += new EventHandler(this.FirstRunDialogClick);
         this.infoLabel.Click   += new EventHandler(this.FirstRunDialogClick);
     }
 }