휴가 신청 삭제시 로그파일에 기록되도록 함
This commit is contained in:
@@ -15,7 +15,7 @@ namespace Project
|
||||
public fLog()
|
||||
{
|
||||
InitializeComponent();
|
||||
Pub.log.RaiseMsg += Log_RaiseMsg;
|
||||
FCOMMON.Pub.log.RaiseMsg += Log_RaiseMsg;
|
||||
this.FormClosed += FLog_FormClosed;
|
||||
this.KeyDown += (s1, e1) => {
|
||||
if (e1.KeyCode == Keys.Escape) this.Close();
|
||||
@@ -24,7 +24,7 @@ namespace Project
|
||||
|
||||
private void FLog_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
Pub.log.RaiseMsg -= Log_RaiseMsg;
|
||||
FCOMMON.Pub.log.RaiseMsg -= Log_RaiseMsg;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Project
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.logTextBox1.LoadFile(Pub.log.FileName, RichTextBoxStreamType.PlainText);
|
||||
this.logTextBox1.LoadFile(FCOMMON.Pub.log.FileName, RichTextBoxStreamType.PlainText);
|
||||
this.logTextBox1.ForeColor = Color.White;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user