/// <summary> /// This is a javascript application. /// </summary> /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param> public Application(IApp page) { @"Hello world".ToDocumentTitle(); y = ( string id, string name, string email, string gravatar ) => { // we are replacing elements with implicit elements var n = new ContactLayout { id = id, name = name, email = email }; n.gravatar.src = gravatar; n.Container.AttachToDocument(); }; page.GetContacts.WhenClicked( async button => { await GetContacts(); } ); }
public async void GetLienHeNoiGui(ContactLayout contactLayout) { LienHe a = await((ContactLayoutViewModel)contactLayout.DataContext).getSelectedLienHe(); if (a == null) { return; } if (VisibleTextBox == "Visible") { VisibleTextBox = "Collapsed"; VisibleButton = "Visible"; } NoiGui = a; }
public async void GetLienHeNoiNhan(ContactLayout contactLayout) { LienHe a = await((ContactLayoutViewModel)contactLayout.DataContext).getSelectedLienHe(); if (a == null) { return; } LienHeShort lh = new LienHeShort(); lh.Email = a.Email; lh.TenLienHe = a.Name; DSNoiNhan.Add(lh); NoiNhan = ""; }