private void IHM_Load(object sender, EventArgs e) { //deserialisation des parametres de la fenetre Serializer load = new Serializer(); SaveForm param_fenetre = load.DeserialiserFenetre(); //TODO passer par la couche business if (param_fenetre != null) { this.Size = new System.Drawing.Size(param_fenetre.Weightform, param_fenetre.Heightform); this.splitContainer1.SplitterDistance = param_fenetre.Splitterdistance; this.Location = new System.Drawing.Point(param_fenetre.LocalisationX, param_fenetre.LocalisationY); } BusinessLayer.Metier.Bibliotheque b =new BusinessLayer.Metier.Bibliotheque(); b.UpdateBdd(); foreach (BusinessLayer.Interfaces.ILivre l in b.Livre) { TreeNode n = new TreeNode(l.Titre); n.Tag = l; treeView1.Nodes.Add(n); } }
/// <summary> /// Méthode appelée au lancement /// </summary> private void IHM_Load(object sender, EventArgs e) { //deserialisation des parametres de la fenetre Serializer load = new Serializer(); SaveForm param_fenetre = load.DeserialiserFenetre(); if (param_fenetre != null) { this.Size = new System.Drawing.Size(param_fenetre.Weightform, param_fenetre.Heightform); this.splitContainer1.SplitterDistance = param_fenetre.Splitterdistance; this.Location = new System.Drawing.Point(param_fenetre.LocalisationX, param_fenetre.LocalisationY); } UpdateTree(); }