Exemple #1
0
        public bool End(usrc_FVI_SLO_MessageBox xusrc_FVI_SLO_MessageBox)
        {
            FiscalSettings = null;
            taxService = null;

            usrc_FVI_SLO_Message xusrc_FVI_SLO_Message_END = new usrc_FVI_SLO_Message(0,usrc_FVI_SLO_Message.eMessage.NONE, null);
            Thread_FVI_Message fvi_message_END = new Thread_FVI_Message(0,Thread_FVI_Message.eMessage.END, null);
            message_box.Post(fvi_message_END);
            long StartTicks = DateTime.Now.Ticks;

            for (;;)
            {
                if (xusrc_FVI_SLO_MessageBox.Get(ref xusrc_FVI_SLO_Message_END)== Result_MessageBox_Get.OK)
                {
                    if (xusrc_FVI_SLO_Message_END.Message == usrc_FVI_SLO_Message.eMessage.Thread_FVI_END)
                    {
                        return true;
                    }
                }
                if ((DateTime.Now.Ticks- StartTicks)>100000000)
                {
                    return false;
                }
            }
        }
Exemple #2
0
 public bool Start(usrc_FVI_SLO_MessageBox xusrc_FVI_SLO_MessageBox,int message_box_length,bool fursTESTEnvironment, string certificateFileName, string CertPass, string fursWebServiceURL, string fursXmlNamespace, int timeOutInSec, ref string ErrReason)
 {
     try
     {
         ThreadData thdata = new ThreadData(fursTESTEnvironment,certificateFileName, CertPass, fursWebServiceURL, fursXmlNamespace, timeOutInSec, xusrc_FVI_SLO_MessageBox);
         message_box = new Thread_FVI_MessageBox(message_box_length);
         FVI_Thread = new System.Threading.Thread(Run);
         FVI_Thread.SetApartmentState(ApartmentState.STA);
         FVI_Thread.Start(thdata);
         return true;
     }
     catch (Exception ex)
     {
         ErrReason = ex.Message;
         return false;
     }
 }
Exemple #3
0
 public ThreadData(bool xfursTESTEnvironment,string xcertificateFileName, string xCertPass, string xfursWebServiceURL, string xfursXmlNamespace, int xtimeOutInSec, usrc_FVI_SLO_MessageBox x_usrc_FVI_SLO_MessageBox)
 {
     fursTESTEnvironment = xfursTESTEnvironment;
     certificateFileName = xcertificateFileName;
     CertPass = xCertPass;
     fursWebServiceURL = xfursWebServiceURL;
     fursXmlNamespace = xfursXmlNamespace;
     timeOutInSec = xtimeOutInSec;
     m_usrc_FVI_SLO_MessageBox = x_usrc_FVI_SLO_MessageBox;
 }