public override void New(object sender, EventArgs e)
        {
            DowntimeTypeAdd dfrm = new DowntimeTypeAdd(DowntimeTypeAdd.EditMode.Insert, null);

            if (dfrm.ShowDialog() == DialogResult.OK)
            {
                RefreshClicked();
            }
        }
 public override void Modify(object sender, EventArgs e)
 {
     if (dgvDowntimeType.SelectedRows.Count > 0)
     {
         DowntimeTypeVO vo = new DowntimeTypeVO {
             DownID = dgvDowntimeType.SelectedRows[0].Cells[0].Value.ToString(), DownName = dgvDowntimeType.SelectedRows[0].Cells[1].Value.ToString(), DownExplain = dgvDowntimeType.SelectedRows[0].Cells[2].Value.ToString()
         };
         DowntimeTypeAdd dfrm = new DowntimeTypeAdd(DowntimeTypeAdd.EditMode.Update, vo);
         if (dfrm.ShowDialog() == DialogResult.OK)
         {
             RefreshClicked();
         }
     }
     else
     {
         frm.NoticeMessage = Resources.ModDowntimeTypeError;
     }
 }