Example #1
0
        /// <summary>
        /// Apply ArcGIS Locale to Publish tool
        /// </summary>
        private void UpdateUI()
        {
            // setup locale
            IArcGISLocale agsLocale = new ArcGISLocaleClass();
            CultureInfo   ci        = new CultureInfo(agsLocale.UILocale);

            // set locale
            System.Threading.Thread.CurrentThread.CurrentUICulture = ci;

            //// set flow direction
            if (agsLocale.RightToLeftUI)
            {
                this.RightToLeft = RightToLeft.Yes;
            }
            else
            {
                this.RightToLeft = RightToLeft.No;
            }
        }
Example #2
0
        /// <summary>
        /// Updates UI depending on current locale
        /// </summary>
        private void UpdateUI() {

            // setup locale
            IArcGISLocale agsLocale = new ArcGISLocaleClass();
            CultureInfo ci = new CultureInfo(agsLocale.UILocale);

            // set locale
            System.Threading.Thread.CurrentThread.CurrentUICulture = ci;

            //// set flow direction
            if (agsLocale.RightToLeftUI)
            {
                this.RightToLeft = RightToLeft.Yes;
                this.RightToLeftLayout = true;
            
            }
            else
            {
                this.RightToLeft = RightToLeft.No;
                this.RightToLeftLayout = false;
               
            }
        }