public void setThreadedCloseForm()
 {
     if (this.InvokeRequired)
     {
         setThreadedClose statusLabelCallback = new setThreadedClose(setThreadedCloseForm);
         this.obj.Invoke(statusLabelCallback);
     }
     else
     {
         this.Close();
     }
 }
 public void setThreadedCloseForm()
 {
     if (this.InvokeRequired)
     {
         setThreadedClose statusLabelCallback = new setThreadedClose(setThreadedCloseForm);
         this.obj.Invoke(statusLabelCallback);
     }
     else
     {
         this.Close();
     }
 }