Skip to content

Commit

Permalink
Add ugly UI
Browse files Browse the repository at this point in the history
  • Loading branch information
kenvix committed Mar 27, 2020
1 parent 35fb91a commit 65f1845
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ USBCopyer.exe [/hide] [/gui] [/reset]
## 捐赠
USBCopyer 是一个开源的,非盈利的项目。如果你喜欢这个项目,请捐赠它:
##### 支付宝捐赠
1278730467@qq.com (注: 本人已不再使用QQ且该QQ号拒绝所有好友申请. **请勿** 通过QQ联系我)
![Screenshot](https://git.oschina.net/kenvix/USBCopyer/raw/master/git-resources/alipay-pay.jpg)

![Screenshot](/git-resources/alipay-pay.jpg)

##### 微信支付捐赠
![Screenshot](https://git.oschina.net/kenvix/USBCopyer/raw/master/git-resources/weixin-pay.jpg)
![Screenshot](/git-resources/weixin-pay.jpg)

[捐赠墙(点击查看)](https://github.com/kenvix/USBCopyer/blob/master/Donors.md)
[捐赠墙(点击查看)](/Donors.md)
11 changes: 10 additions & 1 deletion USBCopyer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ static void Main(string[] args)
logger.Source = Application.ProductName;
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if (!System.IO.Directory.Exists(Host.confdir)) System.IO.Directory.CreateDirectory(Host.confdir);
bool useUglyUI = false;
foreach (string arg in args)
{
switch (arg)
Expand Down Expand Up @@ -60,8 +60,17 @@ static void Main(string[] args)
Environment.Exit(1);
}
break;

case "/uglyui":
case "-uglyui":
useUglyUI = true;
break;
}
}

if (!useUglyUI)
Application.EnableVisualStyles();

//设置应用程序处理异常方式:ThreadException处理
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.Automatic);
//处理UI线程异常
Expand Down

0 comments on commit 65f1845

Please sign in to comment.