private void iMau_EditValueChanged(object sender, EventArgs e) { O_MAUEMAIL mau = iMau.GetSelectedDataRow() as O_MAUEMAIL; txtMauEmail.HtmlText = mau.NoiDung; iTen.Text = mau.TenMau; }
private void frmCapSignIn_Load(object sender, EventArgs e) { ma = new D_MAUEMAIL().DuLieu()[5]; _lstDL = new D_DAILY().All(false).Where(w => w.LoaiKhachHang.Equals(1)).ToList(); for (int i = 0; i < _lstDL.Count; i++) { _lstDL[i].TenTam = (_lstDL[i].Ten + "_" + _lstDL[i].MaAGS).ToUpper(); } daiLyOBindingSource.DataSource = _lstDL; _lstHB = new D_HANGBAY().DuLieu().Where(w => w.SapXep).ToList();; hangBayOBindingSource.DataSource = _lstHB; List <O_NHACUNGCAP> nc = new D_NHACUNGCAP().DuLieu(); lstSI = new D_SIGNIN().DuLieu(); Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"SOFTWARE\THCRM", true); if ((key.GetValue("TepDinhKemSignIn") ?? string.Empty) != string.Empty) { txtFileDinhKem.Properties.Tokens.Clear(); List <string> filenames = key.GetValue("TepDinhKemSignIn").ToString().Split(',').ToList(); try { foreach (var item in filenames) { string filename = Path.GetFileName(item); var token_item = new TokenEditToken(filename + $" [{GetFileSizeFromFileNameURL(item)}]", item); txtFileDinhKem.Properties.Tokens.Add(token_item); } txtFileDinhKem.EditValue = string.Join(",", filenames); txtFileDinhKem.Properties.PopupPanel = flyEmail; } catch (Exception ex) { XuLyGiaoDien.Alert(ex.Message, Form_Alert.enmType.Warning); } } }