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