提交 276de1e8 编写于 作者: S szjay

No commit message

No commit message
上级 d0892c96
......@@ -154,9 +154,19 @@ namespace Framework.MainUI
AutoRunModule();
ApplicationLoader.RaiseMainFormShown();
if (File.Exists("BackgroundImage.jpg"))
string backgroundImage = "";
if (File.Exists(Path.Combine(ClientContext.ApplicationPath, "BackgroundImage.jpg")))
{
this.BackgroundImage = Image.FromFile("BackgroundImage.jpg");
backgroundImage = Path.Combine(ClientContext.ApplicationPath, "BackgroundImage.jpg");
}
else if (File.Exists(Path.Combine(ClientContext.ApplicationPath, "BackgroundImage.png")))
{
backgroundImage = Path.Combine(ClientContext.ApplicationPath, "BackgroundImage.png");
}
if (!backgroundImage.IsNullOrEmpty())
{
this.BackgroundImage = Image.FromFile(backgroundImage);
this.BackgroundImageLayout = ImageLayout.Stretch;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册