基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
/******************************
|
||||
* 说明:换肤界面
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-09-13
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using Lskj.Business.Impl;
|
||||
using Lskj.Model;
|
||||
using Lskj.Control;
|
||||
using Lskj.Data;
|
||||
using DevExpress.LookAndFeel;
|
||||
|
||||
namespace Lskj.Main
|
||||
{
|
||||
/// <summary>
|
||||
/// 换肤界面
|
||||
/// </summary>
|
||||
public partial class FrmSkins : Form
|
||||
{
|
||||
public FrmSkins()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:关闭</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-09-13 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the event.</param>
|
||||
/// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
|
||||
private void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string skinName = skinControl1.SkinName;
|
||||
if (skinName != ERPInfo.Instance.SkinName)
|
||||
{
|
||||
if (MessageUtil.Show(ResourceKeys.SkinIsChanged, MessageBoxButtons.YesNo) == DialogResult.Yes)
|
||||
{
|
||||
MainImpl.SaveUserSkin(skinName);
|
||||
ERPInfo.Instance.SkinName = skinName;
|
||||
}
|
||||
else
|
||||
{
|
||||
UserLookAndFeel.Default.SetSkinStyle(ERPInfo.Instance.SkinName);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
finally
|
||||
{
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user