dahall / TaskScheduler

Provides a .NET wrapper for the Windows Task Scheduler. It aggregates the multiple versions, provides an editor and allows for localization.
MIT License
1.21k stars 191 forks source link

I want to get a culture trigger description, Am I not doing it right anywhere? #790

Closed youxiaotian closed 5 years ago

youxiaotian commented 5 years ago

I want to get a chinese description of the trigger。 but the ToString() seems not work. image and in your document: image

youxiaotian commented 5 years ago

I have get the newest code and add the zh-CN resources.

youxiaotian commented 5 years ago

Add to my question again. I want to make a WindowsService which can scanning and collect information about all the task on the current computer.

dahall commented 5 years ago

Add the following to your code:

System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-CN");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN");

Then call the ToString() method

youxiaotian commented 5 years ago

Thank you for your reply, your advice I have try early when I when I finished decompile the DLL, but it was dosn't work. And then I have solved this problem about an hour ago. it's caused by I didn't create a folder to contains the resouce.dll like this: before: image after: fixed. image

I was going to close the question tomorrow, but I got your email, so I'd better get back to it now. Thank you again for your reply.