1. 환경설정에 window 파일 저장 주기 추가(단위:분)
2. window1(2).grp 파일 생성시 임시(.temp) 파일에 생성 후 원본을 덮어쓰기 함 (window 파일 손상시 프로그램에 치명적이므로 임시파일로 처리)
This commit is contained in:
@@ -180,6 +180,8 @@ namespace vmsnet
|
||||
this.chk_lsb.Checked = PUB.CONFIG.lsb;
|
||||
this.tb_trashper.Text = PUB.CONFIG.trashper.ToString();
|
||||
this.tb_saveterm.Text = PUB.CONFIG.saveterm.ToString();
|
||||
this.tb_savetermCellInfo.Text = PUB.CONFIG.savetermcellinfo.ToString();
|
||||
|
||||
this.chk_2nddata.Checked = PUB.CONFIG.seconddata;
|
||||
this.chk_3rdData.Checked = PUB.CONFIG.thirddata;
|
||||
this.chk_4thData.Checked = PUB.CONFIG.getdata4;
|
||||
@@ -348,6 +350,25 @@ namespace vmsnet
|
||||
return;
|
||||
}
|
||||
|
||||
if (short.TryParse(this.tb_saveterm.Text, out short v_saveterm) == false)
|
||||
{
|
||||
UTIL.MsgE("저장주기를 입력하세요");
|
||||
this.tb_saveterm.Focus();
|
||||
return;
|
||||
}
|
||||
if (short.TryParse(this.tb_savetermCellInfo.Text, out short v_savetermCellInfo) == false)
|
||||
{
|
||||
UTIL.MsgE("셀정보 저장주기를 입력하세요");
|
||||
this.tb_savetermCellInfo.Focus();
|
||||
return;
|
||||
}
|
||||
if(short.TryParse(this.tb_trashper.Text, out short v_trashper) == false)
|
||||
{
|
||||
UTIL.MsgE("디스크 정리주기를 입력하세요");
|
||||
this.tb_trashper.Focus();
|
||||
return;
|
||||
}
|
||||
|
||||
//데이터베이스적용
|
||||
PUB.DS.Clear();
|
||||
PUB.DS.Merge(this.DocumentElement1);
|
||||
@@ -367,8 +388,10 @@ namespace vmsnet
|
||||
PUB.CONFIG.synctime = this.chk_synctime.Checked;
|
||||
PUB.CONFIG.databasefolder = this.tb_savepath.Text;
|
||||
PUB.CONFIG.lsb = this.chk_lsb.Checked;
|
||||
PUB.CONFIG.trashper = short.Parse(this.tb_trashper.Text);
|
||||
PUB.CONFIG.saveterm = short.Parse(this.tb_saveterm.Text);
|
||||
PUB.CONFIG.trashper = v_trashper;// short.Parse(this.tb_trashper.Text);
|
||||
PUB.CONFIG.saveterm = v_saveterm;// short.Parse(this.tb_saveterm.Text);
|
||||
PUB.CONFIG.savetermcellinfo = v_savetermCellInfo;// short.Parse(this.tb_savetermCellInfo.Text);
|
||||
|
||||
PUB.CONFIG.seconddata = this.chk_2nddata.Checked;
|
||||
PUB.CONFIG.thirddata = this.chk_3rdData.Checked;
|
||||
PUB.CONFIG.getdata4 = this.chk_4thData.Checked;
|
||||
|
||||
Reference in New Issue
Block a user