Esempio n. 1
0
        /// <summary>
        /// Setup a general purpose status message
        /// </summary>
        /// <param name="myStatus"></param>
        /// <param name="myState"></param>
        /// <param name="myText"></param>
        private void setupStatus(out IDriverStatusMessage myDSM, KaiTrade.Interfaces.Status myState, string myText)
        {
            myDSM = null;
            try
            {
                setupAdvisory(out myDSM, myText);
                myDSM.State = (int)myState;
            }
            catch (Exception myE)
            {
                log.Error("setupStatus", myE);
            }

        }
Esempio n. 2
0
        /// <summary>
        /// Set up an advisory message - this give any clients general purpose advisory
        /// information - note that regular status messages should be used for any type of error
        /// </summary>
        /// <param name="myAdvisory"></param>
        /// <param name="myText"></param>
        private void setupAdvisory(out IDriverStatusMessage myDSM, string myText)
        {
            myDSM = new DriverStatusMessage();
            try
            {
                
                myDSM.Text = myText;
                myDSM.DriverCode = this.m_ID;
                myDSM.Module = _module.ToString();
            }
            catch (Exception myE)
            {
                log.Error("setupAdvisory", myE);
            }

        }