private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _Item = BOCaiDatThongTinCongTy.GetAll();
            if (_Item != null)
            {
                txtTenDoanhNghiep.Text  = _Item.TenCongTy;
                txtTenVietTat.Text      = _Item.TenVietTat;
                txtMaSoThue.Text        = _Item.MaSoThue;
                txtTenNguoiDaiDien.Text = _Item.NguoiDaiDien;

                txtDienThoaiBan.Text    = _Item.DienThoaiBan;
                txtDienThoaiDiDong.Text = _Item.DienThoaiDiDong;
                txtEmail.Text           = _Item.Email;
                txtFax.Text             = _Item.Fax;

                txtDiaChi.Text = _Item.DiaChi;

                if (_Item.Hinh != null && _Item.Hinh.Length > 0)
                {
                    btnHinhDaiDien.Image = Utilities.ImageHandler.BitmapImageFromByteArray(_Item.Hinh);
                }

                if (_Item.Logo != null && _Item.Logo.Length > 0)
                {
                    btnLogo.Image = Utilities.ImageHandler.BitmapImageFromByteArray(_Item.Logo);
                }
            }
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _Item = BOCaiDatThongTinCongTy.GetAll();
            if (_Item != null)
            {
                txtTenDoanhNghiep.Text = _Item.TenCongTy;
                txtTenVietTat.Text = _Item.TenVietTat;
                txtMaSoThue.Text = _Item.MaSoThue;
                txtTenNguoiDaiDien.Text = _Item.NguoiDaiDien;

                txtDienThoaiBan.Text = _Item.DienThoaiBan;
                txtDienThoaiDiDong.Text = _Item.DienThoaiDiDong;
                txtEmail.Text = _Item.Email;
                txtFax.Text = _Item.Fax;

                txtDiaChi.Text = _Item.DiaChi;

                if (_Item.Hinh != null && _Item.Hinh.Length > 0)
                {
                    btnHinhDaiDien.Image = Utilities.ImageHandler.BitmapImageFromByteArray(_Item.Hinh);
                }

                if (_Item.Logo != null && _Item.Logo.Length > 0)
                {
                    btnLogo.Image = Utilities.ImageHandler.BitmapImageFromByteArray(_Item.Logo);
                }
            }
        }