public Liaison(Liaison l) { this.nom = l.Nom; this.configRadio = l.configRadio; this.site_a = new Site(l.Site_a); this.site_b = new Site(l.Site_b); }
public List <Liaison> ListLiaisons() { Liaison liaison = new Liaison(); List <Liaison> all = new List <Liaison>(); SqlCeCommand cmd = cn.CreateCommand(); cmd.CommandText = "SELECT * FROM liaison"; SqlCeDataReader rdr = cmd.ExecuteReader(); while (rdr.Read()) { liaison = new Liaison(); liaison.Id = rdr.GetInt32(0); liaison.Nom = rdr.GetString(1); all.Add(liaison); } rdr.Close(); return(all); }
public SiteButton() { this.bLiaison = new Liaison(); this.bSite = new Site(); }
public SiteButton(SiteButton sb) { this.bLiaison = new Liaison(sb.BLiaison); this.bSite = new Site(sb.BSite); }