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