장비관리를 별도의 프로젝트로 분리 -

개별 프로젝트 참조를 위한 뼈대 생성 - 공용은 fcommon 으로 이 관
This commit is contained in:
chikyun.kim
2018-09-17 15:42:20 +09:00
parent 98ae9c7ad2
commit a873717126
205 changed files with 25207 additions and 7538 deletions

View File

@@ -6,7 +6,6 @@ using System.ComponentModel;
namespace Project
{
public class Setting : arUtil.Setting
{
#region "log"
@@ -36,20 +35,19 @@ namespace Project
public string lastid { get; set; }
public Setting()
{
string Path = Util.CurrentPath;
if (Util.isLocalApplication()) Path = @"c:\Amkor\GroupWare\";
this.filename = Path + "Setting.xml";
public Setting() : this(Util.CurrentPath + "setting.xml") {}
System.IO.FileInfo fi = new System.IO.FileInfo(filename);
if (!System.IO.File.Exists(filename))
public Setting(string file)
{
this.filename = file;
var fi = new System.IO.FileInfo(this.filename);
if (fi.Directory.Exists == false) fi.Directory.Create();
if (fi.Exists == false)
{
if (!fi.Directory.Exists) fi.Directory.Create();
this.Load();
this.Save();
}
}
}
public override void AfterLoad()
{
@@ -67,21 +65,18 @@ namespace Project
public class UserSetting : arUtil.Setting
{
public UserSetting()
public UserSetting() : this(Util.CurrentPath + "UserSet.xml") { }
public UserSetting(string file)
{
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))
this.filename = file;
var fi = new System.IO.FileInfo(this.filename);
if (fi.Directory.Exists == false) fi.Directory.Create();
if (fi.Exists == false)
{
if (!fi.Directory.Exists) fi.Directory.Create();
this.Load();
this.Save();
}
}
}
public override void AfterLoad()
{
//throw new NotImplementedException();