コード例 #1
0
ファイル: CoreApplication.cs プロジェクト: wonrst/TizenFX
        /// <summary>
        /// Overrides this method if want to handle behavior when the region format is changed.
        /// If base.OnRegionFormatChanged() is not called, the event 'RegionFormatChanged' will not be emitted.
        /// </summary>
        /// <param name="e">The region format changed event argument</param>
        /// <since_tizen> 3 </since_tizen>
        protected virtual void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
        {
            if (!GlobalizationMode.Invariant)
            {
                ChangeCurrentCultureInfo(e.Region);
            }

            RegionFormatChanged?.Invoke(this, e);
        }
コード例 #2
0
 /// <summary>
 /// Overrides this method if want to handle behavior when the region format is changed.
 /// If base.OnRegionFormatChanged() is not called, the event 'RegionFormatChanged' will not be emitted.
 /// </summary>
 /// <param name="e">The region format changed event argument</param>
 /// <since_tizen> 3 </since_tizen>
 protected virtual void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
 {
     RegionFormatChanged?.Invoke(this, e);
 }
コード例 #3
0
 /// <summary>
 /// Overrides this method if want to handle behavior when the region format is changed.
 /// If base.OnRegionFormatChanged() is not called, the event 'RegionFormatChanged' will not be emitted.
 /// </summary>
 /// <param name="e">The region format changed event argument</param>
 /// <since_tizen> 3 </since_tizen>
 protected virtual void OnRegionFormatChanged(RegionFormatChangedEventArgs e)
 {
     ChangeCurrentCultureInfo(e.Region);
     RegionFormatChanged?.Invoke(this, e);
 }
コード例 #4
0
ファイル: BaseComponent.cs プロジェクト: yoowonyoung/TizenFX
 internal void OnRegionFormatChangedCallback(string region)
 {
     RegionFormatChanged?.Invoke(this, new RegionFormatChangedEventArgs(region));
 }