提交 d0892c96 编写于 作者: S szjay

主窗体装载指定的图片BackgroundImage.jpg当做背景图

上级 bfdf3a55
...@@ -61,11 +61,6 @@ namespace Infrastructure.Components ...@@ -61,11 +61,6 @@ namespace Infrastructure.Components
gridView.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(gridView_CustomDrawRowIndicator); //行号列自绘。 gridView.CustomDrawRowIndicator += new RowIndicatorCustomDrawEventHandler(gridView_CustomDrawRowIndicator); //行号列自绘。
gridView.CustomColumnDisplayText += new CustomColumnDisplayTextEventHandler(gridView_CustomColumnDisplayText); //每一列自绘显示的文本。 gridView.CustomColumnDisplayText += new CustomColumnDisplayTextEventHandler(gridView_CustomColumnDisplayText); //每一列自绘显示的文本。
if (!gridView.OptionsView.ShowDetailButtons)
{
//gridView.MasterRowExpanding += (a, b) => b.Allow = false;
}
gridView.EndSorting += (a, b) => gridView.MoveFirst(); gridView.EndSorting += (a, b) => gridView.MoveFirst();
} }
} }
......
...@@ -154,6 +154,12 @@ namespace Framework.MainUI ...@@ -154,6 +154,12 @@ namespace Framework.MainUI
AutoRunModule(); AutoRunModule();
ApplicationLoader.RaiseMainFormShown(); ApplicationLoader.RaiseMainFormShown();
if (File.Exists("BackgroundImage.jpg"))
{
this.BackgroundImage = Image.FromFile("BackgroundImage.jpg");
this.BackgroundImageLayout = ImageLayout.Stretch;
}
UpgradeLogForm.Open(); UpgradeLogForm.Open();
//ClientContext.TimedTask += () => ClientContext.SystemMessageHint.Open(ClientContext.Now + "\r\ntest test test !!!"); //ClientContext.TimedTask += () => ClientContext.SystemMessageHint.Open(ClientContext.Now + "\r\ntest test test !!!");
......
此差异已折叠。
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</entityFramework> </entityFramework>
<connectionStrings> <connectionStrings>
<add name="DB" connectionString="data source=.;initial catalog=Platform;persist security info=True;user id=sa;password=123;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /> <add name="DB" connectionString="data source=.;initial catalog=JM-FMIS;persist security info=True;user id=sa;password=123;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
</connectionStrings> </connectionStrings>
<!--注意,以下配置修改后,必须重启服务才能生效--> <!--注意,以下配置修改后,必须重启服务才能生效-->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册