コード例 #1
0
        /// <summary>
        /// Set Language at the first Time, first GwinApp start
        /// </summary>
        /// <param name="cultureInfo">CultureInfo Instance</param>
        public static void SetLanguage(CultureInfo cultureInfo)
        {
            GwinApp.TestIf_Gwin_isStart();



            // Must Delete All Entity Configuration, bacause it demande with language
            ConfigEntity.Despose();

            // Set Date as Latin Date
            cultureInfo.DateTimeFormat.Calendar = new System.Globalization.GregorianCalendar();

            // Change Gwin CultureInfo Instance
            GwinApp.Instance.CultureInfo = cultureInfo;

            // Change Thread CultureInfo Instance
            Thread.CurrentThread.CurrentCulture   = cultureInfo;
            Thread.CurrentThread.CurrentUICulture = cultureInfo;

            // ReLoad Applicaton Interface
            instance.FormApplication.Reload();
        }
コード例 #2
0
 /// <summary>
 /// End GwinApp
 /// </summary>
 public static void End()
 {
     GwinApp.instance = null;
     // Despose All Calculated Configuration
     ConfigEntity.Despose();
 }