Saturday, January 30, 2016

Как попольниит без комиссии

При пополнении баланса в есть много вариантов, но многие добавляют свою комиссию.

Для оплаты через банковскую карту, выберите вариант "Электронные варианты", "Z-payment" далее нажмите кнопку "Оплатить и пополнить" и уже тут выберите банковскую карту для оплаты.

Wednesday, October 14, 2015

How to change Windows 10 interface language on Single Language version


We have PC with preinstalled Windows 8 or 8.1 with "Single Language" license. It means we can have only one language in windows.

In my case it was Russian, after upgrade to Windows 10 we get Russian "Windows 10 Single Language" version. And from Windows itself you can not change it to English or anyother language.


1) Upgrade using windows update or using "media creation tool"

* if you are using "media creation tool" select "Upgrade this PC now"

When Windows 10 installed check that it is activated.

2) Now as you have activated Windows 10 using "media creation tool" select second option "Create installation media for another PC" here you can select Windows version and its language. Make sure that Windows version is also "Single Language"

3) Boot from you device, USB in my case and install clean Windows in English or any other language you selected.

Tuesday, December 16, 2014

WPF ContentControl/ContentPresender and INotifyDataErrorInfo


Given we have content control
and its content bound to viewmodel
and viewmodel implements INotifyDataErrorInfo
and property Name can't be set to "X"
when viewmodel.Name set to "X"
then input bound to Name get red border
but contentcontrol get red order too!

Set ValidatesOnNotifyDataErrors to False in ContentControl Content binding

Thursday, December 11, 2014

MSBuild update C# project file using XmlPoke.


I have password protected Click-Once project. And when I try to build it from msbuild I get following exceptions:

1) Microsoft.Common.CurrentVersion.targets(2718,5): error MSB3326: Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user's personal certificate store.

2) Microsoft.Common.CurrentVersion.targets(2718,5): error MSB3321: Importing key file "MyProject.Development_TemporaryKey.pfx" was canceled.

Since all I need is to build my solution and run unit tests. I decided to uncheck signing of my project.

To change csproj I used XmlPoke as follows:


So now I got my build server running. Next step of course to publish nightly development version for users. But thats another story.

Wednesday, June 11, 2014

Simple horizontal headeredcontentcontrol style

For future use. Make headerdcontent control horizontal for form like fields.

Saturday, May 3, 2014

Run R code from C#.

We have tryied to use R.Net to run R code in our project last week. Single runs were successfull.

But then problems started.

1. Initialize only one instance per process.

Current version 1.5.5 in nuget can be created only one time. Second call to Initialize just hangs.

2. Crashes on 4th- 5th try

Last available version 1.5.11 throws exceptions on 4th or 5 th run. And almost never returns error message.

Our solution:

Our solution based on this answer on stackoverflow

With monor change, we send R code from string and save it to temp file, since user run custom R code when needed.

  Here is gist of test:

 Result, run over R scipt over 2000 times and no error.

Hope, saved your time.

Sunday, April 13, 2014

WPF ComboBox ItemsSource bind to parent collection

In is common to bind combo box in datagrid to parent ItemsSource.

For example we need to select Currency for each Account.

So we have Currencies collection in parent level. And each Account has Currency.

Now to bind each account combobox to Currencies collection use CollectionViewSource