Пример #1
0
 private void carica()
 {
     txtNome.Text = string.Empty;
     txtNumero.Text = string.Empty;
     Personaggio currentCharacter = this.LoggedCharacter;
     RubricaManager namesManager = new RubricaManager(DatabaseContext);
     var myRubrica = namesManager.GetContactsByCharacter(currentCharacter.NumeroPG);
     grdPeople.DataSource = myRubrica;
     grdPeople.DataBind();
 }
Пример #2
0
 private void preparaEditor()
 {
     hidReceivers.Value = string.Empty;
     txtDestinatari.Text = string.Empty;
     txtOggetto.Text = string.Empty;
     txtTesto.Text = string.Empty;
     lblPageTitle.Text = "Componi Messaggio";
     RubricaManager namesManager = new RubricaManager(DatabaseContext);
     cmbNomiSalvati.DataValueField = "NumeroSalvato";
     cmbNomiSalvati.DataTextField = "NomeVisualizzato";
     cmbNomiSalvati.DataSource = namesManager.GetContactsByCharacter(this.LoggedCharacter.NumeroPG);
     cmbNomiSalvati.DataBind();
 }