Skip to content

Commit 7a7e90a

Browse files
authored
Main.cs 수정
1. 도움말 내용 추가 2. 메인창에서 엑셀 가져오기/내보내기 할 때 저장하지 않고 끝낼 경우 리소스 해제하도록 함
1 parent 7e86eb7 commit 7a7e90a

File tree

1 file changed

+24
-4
lines changed
  • WeeklyReportForCadian/WeeklyReportForCadian

1 file changed

+24
-4
lines changed

WeeklyReportForCadian/WeeklyReportForCadian/Main.cs

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,15 @@ private void button_Export_Click(object sender, EventArgs e)
232232

233233
MessageBox.Show("주간보고서 내용을 성공적으로 작성했습니다.", "성공", MessageBoxButtons.OK, MessageBoxIcon.Information);
234234
}
235+
else
236+
{
237+
excelApp.Quit();
238+
239+
// 리소스 해제
240+
releaseObject(workSheet);
241+
releaseObject(workbook);
242+
releaseObject(excelApp);
243+
}
235244
}
236245

237246
private void button_Import_Click(object sender, EventArgs e)
@@ -418,13 +427,13 @@ private void button1_Click(object sender, EventArgs e)
418427
ModalessForm_HelpInfo.Show();
419428

420429
ModalessForm_HelpInfo.Text = "도움말 - 주간보고서 코드명";
421-
ModalessForm_HelpInfo.Size = new System.Drawing.Size(600, 300);
430+
ModalessForm_HelpInfo.Size = new System.Drawing.Size(800, 500);
422431

423432
TextBox TextBox_helpText = new TextBox();
424433
TextBox_helpText.Enabled = true;
425434
TextBox_helpText.Multiline = true;
426-
TextBox_helpText.Height = 200;
427-
TextBox_helpText.Width = 500;
435+
TextBox_helpText.Width = 700;
436+
TextBox_helpText.Height = 400;
428437
TextBox_helpText.Location = new System.Drawing.Point(25, 25);
429438
TextBox_helpText.Name = "textBox_helpText";
430439
TextBox_helpText.Text =
@@ -438,7 +447,18 @@ private void button1_Click(object sender, EventArgs e)
438447
" Plan: Study, Research, Documentation\r\n" +
439448
" Development: 없음\r\n" +
440449
" Check: Study, Research, Documentation\r\n" +
441-
" Amend: Plan, Development\r\n";
450+
" Amend: Plan, Development\r\n" +
451+
"\r\n" +
452+
"[Plan_Study]: 프로젝트 계획 수립을 위한 학습, 회의\r\n" +
453+
"[Plan_Research]: 프로젝트 계획 수립을 위한 연구, 회의\r\n" +
454+
"[Plan_Documentation]: 프로젝트 계획 수립을 위한 보고서 작성(개발 계획서)\r\n" +
455+
"[Development]: 기능 개발, 코딩(사업 계획서 기반)\r\n" +
456+
"[Check_Study]: 수정을 위한 학습, 회의\r\n" +
457+
"[Check_Research]: 수정을 위한 연구, 회의\r\n" +
458+
"[Check_Documentation]: 수정을 위한 보고서 작성(각종 보고서, 결과 보고서, 회의 자료)\r\n" +
459+
"[Amend_Plan]: 프로젝트 계획 변경을 위한 수정, 회의\r\n" +
460+
"[Amend_Development]: 프로젝트 기능 변경을 위한 수정(버그 처리)\r\n" +
461+
"[Others] 그 외 기타(논문, 특허 서류, 회의, 회사 공무 등)\r\n";
442462

443463
ModalessForm_HelpInfo.Controls.Add(TextBox_helpText);
444464
}

0 commit comments

Comments
 (0)