Created
July 9, 2018 05:42
-
-
Save danielplawgo/282c1586b217d2b5127de284e4d7c772 to your computer and use it in GitHub Desktop.
Używanie napisów w aplikacji
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//użycie bezpośrednie napisu | |
var applicationName = ConfigurationManager.AppSettings["ApplicationName"]; | |
//skorzystanie z stałej | |
var applicationName = ConfigurationManager.AppSettings[SettingsNames.ApplicationName]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var applicationName = ConfigurationManager.AppSettings[SettingsNames.ApplicationName]; | |
var message = string.Format(ApplicationResources.HelloMessage, applicationName); | |
Console.WriteLine(message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Nazwy regionów używanych w Prism w aplikacji WPF | |
public static class RegionNames | |
{ | |
public static readonly string Main = "Main"; | |
public static readonly string Menu = "Menu"; | |
public static readonly string StatusBar = "StatusBar"; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class SettingsNames | |
{ | |
public const string ApplicationName = "ApplicationName"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment