12 references to FromCulture
System.Windows.Forms (2)
System\Windows\Forms\Input\InputLanguageChangedEventArgs.cs (1)
19InputLanguage? language = InputLanguage.FromCulture(culture)
System\Windows\Forms\Input\InputLanguageChangingEventArgs.cs (1)
20InputLanguage? language = InputLanguage.FromCulture(culture)
System.Windows.Forms.Tests (10)
System\Windows\Forms\InputLanguageChangedEventArgsTests.cs (3)
22Assert.Equal(InputLanguage.FromCulture(culture), e.InputLanguage); 48yield return new object[] { InputLanguage.FromCulture(CultureInfo.InvariantCulture), 0 }; 49yield return new object[] { InputLanguage.FromCulture(new CultureInfo("en")), 1 };
System\Windows\Forms\InputLanguageChangingEventArgsTests.cs (3)
22Assert.Equal(InputLanguage.FromCulture(culture), e.InputLanguage); 49yield return new object[] { InputLanguage.FromCulture(CultureInfo.InvariantCulture), true }; 50yield return new object[] { InputLanguage.FromCulture(new CultureInfo("en")), false };
System\Windows\Forms\InputLanguageTests.cs (4)
87InputLanguage result = InputLanguage.FromCulture(language.Culture); 97Assert.Null(InputLanguage.FromCulture(invariantCulture)); 103Assert.Throws<ArgumentNullException>("culture", () => InputLanguage.FromCulture(null)); 156InputLanguage language = InputLanguage.FromCulture(culture);