/// <summary>
 /// Xử lý sự kiện sửa
 /// </summary>
 private void Xem()
 {
     if (!tlbModify.IsEnabled)
     {
         return;
     }
     Cursor = Cursors.Wait;
     if (grDSTaiSan.SelectedItems.Count == 1)
     {
         DataRowView        dr        = (DataRowView)grDSTaiSan.SelectedItems[0];
         int                idHDTC    = Convert.ToInt32(dr["ID"]);
         string             maHDTC    = dr["MA_HDTC"].ToString();
         ucHopDongTheChapCT objHDTCCT = new ucHopDongTheChapCT(DatabaseConstant.Action.XEM, idHDTC, maHDTC);
         string             tittle    = DatabaseConstant.layNgonNguTieuDeForm(this.Function);
         Window             window    = new Window();
         window.Title = tittle;
         window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         window.Content = objHDTCCT;
         window.ShowDialog();
     }
     else if (grDSTaiSan.SelectedItems.Count > 1)
     {
         LMessage.ShowMessage("M.DungChung.KhongDuocChonNhieu", LMessage.MessageBoxType.Warning);
     }
     Cursor = Cursors.Arrow;
 }
        /// <summary>
        /// Xử lý sự kiện thêm
        /// </summary>
        private void Them()
        {
            if (!tlbAdd.IsEnabled)
            {
                return;
            }

            ucHopDongTheChapCT ucHopDong = new ucHopDongTheChapCT();
            string             tittle    = DatabaseConstant.layNgonNguTieuDeForm(this.Function);
            Window             window    = new Window();

            window.Title   = tittle;
            window.Content = ucHopDong;
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            window.ShowDialog();
            Cursor = Cursors.Arrow;
        }