Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public SiteButton()
 {
     this.bLiaison = new Liaison();
     this.bSite    = new Site();
 }
Exemplo n.º 4
0
 public SiteButton(SiteButton sb)
 {
     this.bLiaison = new Liaison(sb.BLiaison);
     this.bSite    = new Site(sb.BSite);
 }