为什么多语言中的这种更改语言需要两次点击? [英] Why this change language in multilingual need twice click ?

查看:92
本文介绍了为什么多语言中的这种更改语言需要两次点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!



我尝试通过以下链接在C#2013 windows应用程序中创建一个多语言项目,但是当我第一次点击按钮更改语言和系统时需要重启;它仍然保持相同的语言或不改变。我需要再次重复它然后语言被更改,服务正在运行,我不能再调试,除非我找到并禁用当前项目的服务。



我关注多链接,但情况相同。



我关注的链接:



< a href =https://www.studentcompanion.co.za/creating-multilingual-applications-with-c/> C#Windows应用程序中的多语言支持StudentCompanion [ ^ ]



有什么问题?

为什么我必须在第一次使用时重复两次更改按钮?

为什么我关闭项目后当前项目的服务没有停止?这是在测试调试。



谢谢。



我尝试了什么:



多语言支持在C#Windows应用程序中StudentCompanion [ ^ ]

解决方案

为什么不问撰写它的人:他们在文章下面有一个讨论部分。



他们会比以前从未见过的随机网站更了解他们的代码......或者至少你希望如此......


Application.Restart()有时候会有点棘手,请参阅答案: c# - 为什么Application.Restart()不可靠? - 堆栈溢出 [ ^ ]

也许你可以在没有它的情况下先尝试,然后手动重启你的应用程序以查看一切是否按预期工作。


Hi !

I try to create a multilingual project in C# 2013 windows application by following this link, but when I click on the button to change language for the first time and the system need to restart; it still keep this same language or not change yet. I need to repeat it again and then the language is changed, bu the service is running and I can not debug anymore unless I find and disable the service of current project.

I follow multi link,but its the same case.

The link I follow:

Multilingual Support in C# Windows Application | StudentCompanion[^]

What is wrong?
Why I have to repeat the change button for twice in first time use?
And why the service of current project does not stop after I close the project? It is in test debugging.

Thank you.

What I have tried:

Multilingual Support in C# Windows Application | StudentCompanion[^]

解决方案

Why not ask the people who wrote it: They have a discussion section below the "Article".

They will know a lot more about their code than a random website that has never seen it before ... or at the very least you would hope so ...


Application.Restart() can be a bit tricky sometimes, see answer here: c# - Why is Application.Restart() not reliable? - Stack Overflow[^]
Maybe you can try first without it, and restart your application manually to see if everything works as expected.


这篇关于为什么多语言中的这种更改语言需要两次点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆