Пример #1
0
 public InputLanguageChangingEventArgs(System.Windows.Forms.InputLanguage inputLanguage, bool sysCharSet)
 {
     if (inputLanguage == null)
     {
         throw new ArgumentNullException("inputLanguage");
     }
     this.inputLanguage = inputLanguage;
     this.culture       = inputLanguage.Culture;
     this.sysCharSet    = sysCharSet;
 }
 public InputLanguageChangingEventArgs(System.Windows.Forms.InputLanguage inputLanguage, bool sysCharSet)
 {
     if (inputLanguage == null)
     {
         throw new ArgumentNullException("inputLanguage");
     }
     this.inputLanguage = inputLanguage;
     this.culture = inputLanguage.Culture;
     this.sysCharSet = sysCharSet;
 }
Пример #3
0
        public RichTextEditor()
        {
            FontSizes = new double?[] { null, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 24, 26, 28, 30,
                                        32, 34, 36, 38, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 88, 96, 104, 112, 120, 128, 136, 144 };

            InitializeComponent();

            // richControl.fon = new Font("Tahoma", 12, FontStyle.Bold);

            FontFamily = new FontFamily("Arial");
            FontSize   = 12 * 1.3333334;



            Loaded += OnModuleLoaded;

            this.DataContext = this;

            var lang = System.Windows.Forms.InputLanguage.InstalledInputLanguages;

            System.Windows.Forms.InputLanguage inputLang = null;

            foreach (System.Windows.Forms.InputLanguage item in lang)
            {
                if (item.Culture.Name.Contains("ar"))
                {
                    inputLang = item;
                    break;
                }
            }

            if (inputLang != null)
            {
                System.Windows.Forms.InputLanguage.CurrentInputLanguage = inputLang;
            }
        }
Пример #4
0
 public InputLanguageChangedEventArgs(System.Windows.Forms.InputLanguage inputLanguage, byte charSet)
 {
     this.inputLanguage = inputLanguage;
     this.culture       = inputLanguage.Culture;
     this.charSet       = charSet;
 }
Пример #5
0
 public InputLanguageChangedEventArgs(CultureInfo culture, byte charSet)
 {
     this.inputLanguage = System.Windows.Forms.InputLanguage.FromCulture(culture);
     this.culture       = culture;
     this.charSet       = charSet;
 }
 public InputLanguageChangingEventArgs(CultureInfo culture, bool sysCharSet)
 {
     this.inputLanguage = System.Windows.Forms.InputLanguage.FromCulture(culture);
     this.culture = culture;
     this.sysCharSet = sysCharSet;
 }
Пример #7
0
 public InputLanguageChangingEventArgs(CultureInfo culture, bool sysCharSet)
 {
     this.inputLanguage = System.Windows.Forms.InputLanguage.FromCulture(culture);
     this.culture       = culture;
     this.sysCharSet    = sysCharSet;
 }
 public static void Store()
 {
     _storedLang = System.Windows.Forms.InputLanguage.CurrentInputLanguage;
 }
 public InputLanguageChangedEventArgs(System.Windows.Forms.InputLanguage inputLanguage, byte charSet)
 {
     this.inputLanguage = inputLanguage;
     this.culture = inputLanguage.Culture;
     this.charSet = charSet;
 }
 public InputLanguageChangedEventArgs(CultureInfo culture, byte charSet)
 {
     this.inputLanguage = System.Windows.Forms.InputLanguage.FromCulture(culture);
     this.culture = culture;
     this.charSet = charSet;
 }