예제 #1
0
        /// <summary>
        /// Sets the current locale.
        /// </summary>
        public void SetLocale(int localeId)
        {
            string methodName = "IOPCCommon.SetLocaleID";

            try
            {
                IOPCCommon server = BeginComCall <IOPCCommon>(methodName, true);
                server.SetLocaleID(localeId);
            }
            catch (Exception e)
            {
                ComCallError(methodName, e);
            }
            finally
            {
                EndComCall(methodName);
            }
        }
예제 #2
0
        /// <summary>
        /// Sets the current locale.
        /// </summary>
        public void SetLocale(IList <string> preferredLocales)
        {
            // select the best locale.
            int localeId = SelectLocaleId(m_availableLocaleIds, preferredLocales);

            string methodName = "IOPCCommon.SetLocaleID";

            try
            {
                IOPCCommon server = BeginComCall <IOPCCommon>(methodName, true);
                server.SetLocaleID(localeId);
            }
            catch (Exception e)
            {
                ComCallError(methodName, e);
            }
            finally
            {
                EndComCall(methodName);
            }
        }
예제 #3
0
 public void SetLocaleID(int p_LocalID)
 {
     m_IfCommon.SetLocaleID(p_LocalID);
 }