Przydatne polecenia shell'owe - Windows Server

1. update uprawnień user

gpupdate

2. Firewall dla FTP

netsh advfirewall firewall add rule name=”FTP Service” action=allow service=ftpsvc protocol=TCP dir=in
netsh advfirewall set global StatefulFTP disable
Kategoria: 

Format waluty na postawie systemu

1) In app.xaml override OnStartup() and add

 System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("et-EE");

2) Define in XAML @ Window level -

xmlns:sysglb="clr-namespace:System.Globalization;assembly=mscorlib"

3) In XAML

<TextBox Text="{Binding Path=Price, StringFormat='{}{0:C}', ConverterCulture={x:Static sysglb:CultureInfo.CurrentUICulture}}" />

This correctly picks up any custom regional settings. Although I'm using a manually created CultureInfoin the first step, I'm sure it's possible to pass in one of the static types - eg.System.Globalization.CultureInfo.CurrentCulture (I haven't tested it though...)

Kategoria: 

Strony

Subskrybuj Notatnik RSS