09/13일 작
This commit is contained in:
@@ -1,95 +1,95 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
|
||||
public class Setting : arUtil.Setting
|
||||
{
|
||||
#region "log"
|
||||
|
||||
[Browsable(false)]
|
||||
public Boolean Log_IO { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
[Description("Password for Setting")]
|
||||
[Browsable(false)]
|
||||
public string Password_Setup { get; set; }
|
||||
|
||||
[Description("Password for UserSetting")]
|
||||
[Browsable(false)]
|
||||
public string Password_User { get; set; }
|
||||
|
||||
[Description("Display Language"), DisplayName("Language")]
|
||||
public string Language { get; set; }
|
||||
|
||||
[Description("Full Screen Window")]
|
||||
public Boolean FullScreen { get; set; }
|
||||
|
||||
|
||||
[Category("Barcode"), DisplayName("Port Name")]
|
||||
public string Barcode { get; set; }
|
||||
|
||||
public string lastid { get; set; }
|
||||
|
||||
public Setting()
|
||||
{
|
||||
string Path = Util.CurrentPath;
|
||||
if (Util.isLocalApplication()) Path = @"c:\Amkor\GroupWare\";
|
||||
this.filename = Path + "Setting.xml";
|
||||
|
||||
System.IO.FileInfo fi = new System.IO.FileInfo(filename);
|
||||
if (!System.IO.File.Exists(filename))
|
||||
{
|
||||
if (!fi.Directory.Exists) fi.Directory.Create();
|
||||
this.Load();
|
||||
this.Save();
|
||||
}
|
||||
}
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
if (Language.isEmpty()) Language = "Kor";
|
||||
if (Password_Setup.isEmpty()) Password_Setup = "0000";
|
||||
if (Password_User.isEmpty()) Password_User = "9999";
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
//Xml.set_Data("Font", "Font_Content", GetfontString(Font_Content));
|
||||
//Xml.Save();
|
||||
}
|
||||
}
|
||||
|
||||
public class UserSetting : arUtil.Setting
|
||||
{
|
||||
public UserSetting()
|
||||
{
|
||||
string Path = Util.CurrentPath;
|
||||
if (Util.isLocalApplication()) Path = @"c:\Amkor\GroupWare\";
|
||||
this.filename = Path + "UserSet.xml";
|
||||
|
||||
System.IO.FileInfo fi = new System.IO.FileInfo(filename);
|
||||
if (!System.IO.File.Exists(filename))
|
||||
{
|
||||
if (!fi.Directory.Exists) fi.Directory.Create();
|
||||
this.Load();
|
||||
this.Save();
|
||||
}
|
||||
}
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
|
||||
public class Setting : arUtil.Setting
|
||||
{
|
||||
#region "log"
|
||||
|
||||
[Browsable(false)]
|
||||
public Boolean Log_IO { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
[Description("Password for Setting")]
|
||||
[Browsable(false)]
|
||||
public string Password_Setup { get; set; }
|
||||
|
||||
[Description("Password for UserSetting")]
|
||||
[Browsable(false)]
|
||||
public string Password_User { get; set; }
|
||||
|
||||
[Description("Display Language"), DisplayName("Language")]
|
||||
public string Language { get; set; }
|
||||
|
||||
[Description("Full Screen Window")]
|
||||
public Boolean FullScreen { get; set; }
|
||||
|
||||
|
||||
[Category("Barcode"), DisplayName("Port Name")]
|
||||
public string Barcode { get; set; }
|
||||
|
||||
public string lastid { get; set; }
|
||||
|
||||
public Setting()
|
||||
{
|
||||
string Path = Util.CurrentPath;
|
||||
if (Util.isLocalApplication()) Path = @"c:\Amkor\GroupWare\";
|
||||
this.filename = Path + "Setting.xml";
|
||||
|
||||
System.IO.FileInfo fi = new System.IO.FileInfo(filename);
|
||||
if (!System.IO.File.Exists(filename))
|
||||
{
|
||||
if (!fi.Directory.Exists) fi.Directory.Create();
|
||||
this.Load();
|
||||
this.Save();
|
||||
}
|
||||
}
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
if (Language.isEmpty()) Language = "Kor";
|
||||
if (Password_Setup.isEmpty()) Password_Setup = "0000";
|
||||
if (Password_User.isEmpty()) Password_User = "9999";
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
//Xml.set_Data("Font", "Font_Content", GetfontString(Font_Content));
|
||||
//Xml.Save();
|
||||
}
|
||||
}
|
||||
|
||||
public class UserSetting : arUtil.Setting
|
||||
{
|
||||
public UserSetting()
|
||||
{
|
||||
string Path = Util.CurrentPath;
|
||||
if (Util.isLocalApplication()) Path = @"c:\Amkor\GroupWare\";
|
||||
this.filename = Path + "UserSet.xml";
|
||||
|
||||
System.IO.FileInfo fi = new System.IO.FileInfo(filename);
|
||||
if (!System.IO.File.Exists(filename))
|
||||
{
|
||||
if (!fi.Directory.Exists) fi.Directory.Create();
|
||||
this.Load();
|
||||
this.Save();
|
||||
}
|
||||
}
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user