Exemple #1
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     try
     {
         if (lblID.Text != "")
         {
             BORPop frm = new BORPop(BORPop.EditMode.Update, lblID.Text, lblRoute.Text);
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 LoadData();
                 SetBottomStatusLabel("수정 성공");
                 MessageBox.Show("수정 성공");
             }
         }
         else
         {
             SetBottomStatusLabel("선택된 BOR이 없습니다");
             MessageBox.Show("선택된 BOR이 없습니다.");
         }
     }
     catch (Exception err)
     {
         LoggingUtility.GetLoggingUtility(err.Message, Level.Error);
     }
 }
Exemple #2
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     try
     {
         BORPop frm = new BORPop(BORPop.EditMode.Input);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
             SetBottomStatusLabel("등록 성공");
             MessageBox.Show("등록 성공");
         }
     }
     catch (Exception err)
     {
         LoggingUtility.GetLoggingUtility(err.Message, Level.Error);
     }
 }