..
This commit is contained in:
@@ -10,25 +10,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace AR
|
||||
{
|
||||
public class UserSetting : arUtil.Setting
|
||||
{
|
||||
public string customerlist { get; set; }
|
||||
public UserSetting()
|
||||
{
|
||||
|
||||
}
|
||||
public override void AfterLoad()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
|
||||
}
|
||||
public override void AfterSave()
|
||||
{
|
||||
//throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
public class CommonSetting : arUtil.Setting
|
||||
public class CommonSetting : Setting
|
||||
{
|
||||
|
||||
public string WebAPI_R1 { get; set; }
|
||||
@@ -279,11 +261,10 @@ namespace AR
|
||||
public Boolean Enable_PickerCylinder { get; set; }
|
||||
|
||||
|
||||
public string GetPathData()
|
||||
public string GetDataPath()
|
||||
{
|
||||
var path = AppDomain.CurrentDomain.BaseDirectory;
|
||||
if (String.IsNullOrWhiteSpace(Path_Data)) return System.IO.Path.Combine(path, "SaveData");
|
||||
else return Path_Data;
|
||||
var di = new System.IO.DirectoryInfo(this.Path_Data);
|
||||
return di.FullName;
|
||||
}
|
||||
|
||||
[Category("Function"), DisplayName("라벨QR코드검증"), Description("부착된 라벨의 QR코드를 인쇄데이터와 검증 합니다"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
@@ -330,18 +311,13 @@ namespace AR
|
||||
public int HostPortL { get; set; }
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public int HostPortR { get; set; }
|
||||
[Category("Vision"), DisplayName("Camera Left Filename"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
[Category("Vision"), DisplayName("Camera Filename"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public string CameraLFile { get; set; }
|
||||
//[Category("Vision"), DisplayName("Camera Right Filename"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
//public string CameraRFile { get; set; }
|
||||
|
||||
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float AngleOffsetL { get; set; }
|
||||
[Category("Vision"), Editor(typeof(MyUITypeEditor), typeof(UITypeEditor))]
|
||||
public float AngleOffsetR { get; set; }
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region "Count Reset Setting"
|
||||
@@ -612,13 +588,11 @@ namespace AR
|
||||
if (Language.isEmpty()) Language = "Kor";
|
||||
//if (Password_Setup.isEmpty()) Password_Setup = "0000";
|
||||
|
||||
if (Path_Data == "")
|
||||
Path_Data = System.IO.Path.Combine(currentpath, "SaveData");
|
||||
|
||||
if (Path_Data == "") Path_Data = @".\SaveData";
|
||||
try
|
||||
{
|
||||
if (System.IO.Directory.Exists(Path_Data) == false)
|
||||
System.IO.Directory.CreateDirectory(Path_Data);
|
||||
if (System.IO.Directory.Exists(GetDataPath()) == false)
|
||||
System.IO.Directory.CreateDirectory(GetDataPath());
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user