private void closeFormSafe()
 {
     if (InvokeRequired)
     {
         var d = new closeFormDelegate(closeFormSafe);
         Invoke(d);
     }
     else
     {
         Close();
     }
 }
示例#2
0
        public void CloseForm()
        {
            closeFormDelegate la = new closeFormDelegate(delegateCloseForm);

            this.Invoke(la);
        }