コード例 #1
0
        private void frmThongTinTrungTam_Load(object sender, EventArgs e)
        {
            var item = ChiTietTrungTamLogic.Select();

            txtTenTrungTam.Text = item.TenTrungTam;
            txtDiaChi.Text      = item.DiaChi;
            txtSDT.Text         = item.Sdt;
            txtEmail.Text       = item.Email;
            txtWebsite.Text     = item.Website;
        }
コード例 #2
0
        private void btnLuuThongTin_Click(object sender, EventArgs e)
        {
            try
            {
                ChiTietTrungTamLogic.Update(LoadChiTiet());

                MessageBox.Show("Thay đổi thông tin trung tâm thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                GlobalSettings.LoadCenterInformation();
                this.Close();
            }
            catch
            {
                MessageBox.Show("Có lỗi xảy ra", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }