private void btn_them_Click(object sender, EventArgs e) { //txt_fullname.ReadOnly = false; //txt_address_customer.ReadOnly = false; //txt_ghi_chu.ReadOnly = false; //txt_idCard_customer.ReadOnly = false; //txt_money.ReadOnly = false; //txt_phone_customer.ReadOnly = false; //txt_phone_family.ReadOnly = false; //date_birthday.Enabled = true; //radio_sex_customer.Enabled = true; //cbb_category.Enabled = true; //btn_add_customer.Enabled = true; //btn_cancel_customer.Enabled = true; //btn_them.Enabled = false; //grcFriend.Enabled = true; Detail_Infor Detail_Infor = new Detail_Infor(); Detail_Infor._user = _user; UI.Detail.uc_Add_Customer uc_Add_Customer = new UI.Detail.uc_Add_Customer(); int height = uc_Add_Customer.Size.Height; int width = uc_Add_Customer.Size.Width; //uc_List_Friend.List_Friend = Data_Friend; Detail_Infor.Size = new Size(width, height + 60); Detail_Infor.Str_Flag = Variable.detail_infor.Form_Add_Customer; DialogResult dialog_result = Detail_Infor.ShowDialog(); if (dialog_result == DialogResult.Cancel) { Load_Data(); } }
private void btn_them_Click(object sender, EventArgs e) { Detail_Infor Detail_Infor = new Detail_Infor(); Detail_Infor._user = _user; UI.Detail.uc_Add_Customer uc_Add_Customer = new UI.Detail.uc_Add_Customer(); int height = uc_Add_Customer.Size.Height; int width = uc_Add_Customer.Size.Width; //uc_List_Friend.List_Friend = Data_Friend; Detail_Infor.Size = new Size(width, height + 60); Detail_Infor.Str_Flag = Variable.detail_infor.Form_Add_Customer; DialogResult dialog_result = Detail_Infor.ShowDialog(); if (dialog_result == DialogResult.Cancel) { Load_Data(); } }