public void Initialize(Ligne ligne) { // TODO pratiquement la seule fonction à remplir }
public void Initialize(Ligne ligne) { throw new NotImplementedException(); }
private void CreateUserInterfaceAndCommands() { try { WorkSpace dsWorkSpace = AppDs.GetWorkspace("Drafting and Annotation"); dsWorkSpace.Activate(); object[] objects = (object[])dsWorkSpace.GetRibbonTabs(); int length = objects.Length + 1; ////Add a New Tab RibbonTab ribbonTab = dsWorkSpace.AddRibbonTab(AddinGUID, length, "DsExtension", "DsExtension"); if (ribbonTab != null) { RibbonPanel Panneau; RibbonRow LigneBase; RibbonRowPanel Colonne; RibbonRow Ligne; RibbonCommandButton Btn; Panneau = ribbonTab.InsertRibbonPanel(AddinGUID, 1, "Sw", "Sw"); LigneBase = Panneau.InsertRibbonRow(AddinGUID, "A"); Colonne = LigneBase.InsertRibbonRowPanel(AddinGUID, "AA"); // Première colonne Ligne = Colonne.InsertRibbonRow(AddinGUID, "AAA"); var CmdNettoyerDvp = new Cmds.CmdNettoyerDvp(AppDs, AddinGUID); CmdNettoyerDvp.registerCommand(); ListeCmds.Add(CmdNettoyerDvp); Btn = Ligne.InsertRibbonCommandButton(AddinGUID, dsRibbonButtonStyle_e.dsRibbonButtonStyle_SmallWithText, CmdNettoyerDvp.ItemName(), CmdNettoyerDvp.UserCommandID()); Ligne = Colonne.InsertRibbonRow(AddinGUID, "AAB"); var CmdSimplifierSpline = new Cmds.CmdSimplifierSpline(AppDs, AddinGUID); CmdSimplifierSpline.registerCommand(); ListeCmds.Add(CmdSimplifierSpline); Btn = Ligne.InsertRibbonCommandButton(AddinGUID, dsRibbonButtonStyle_e.dsRibbonButtonStyle_SmallWithText, CmdSimplifierSpline.ItemName(), CmdSimplifierSpline.UserCommandID()); Ligne = Colonne.InsertRibbonRow(AddinGUID, "AAC"); var CmdEffacerGravure = new Cmds.CmdEffacerGravure(AppDs, AddinGUID); CmdEffacerGravure.registerCommand(); ListeCmds.Add(CmdEffacerGravure); Btn = Ligne.InsertRibbonCommandButton(AddinGUID, dsRibbonButtonStyle_e.dsRibbonButtonStyle_SmallWithText, CmdEffacerGravure.ItemName(), CmdEffacerGravure.UserCommandID()); // Deuxième colonne Panneau = ribbonTab.InsertRibbonPanel(AddinGUID, 2, "Outils", "Outils"); LigneBase = Panneau.InsertRibbonRow(AddinGUID, "B"); Colonne = LigneBase.InsertRibbonRowPanel(AddinGUID, "BB"); Ligne = Colonne.InsertRibbonRow(AddinGUID, "BAA"); var CmdPoinconner = new Cmds.Poinconner.CmdPoinconner(AppDs, AddinGUID); CmdPoinconner.registerCommand(); ListeCmds.Add(CmdPoinconner); Btn = LigneBase.InsertRibbonCommandButton(AddinGUID, dsRibbonButtonStyle_e.dsRibbonButtonStyle_SmallWithText, CmdPoinconner.ItemName(), CmdPoinconner.UserCommandID()); // Troisième colonne Panneau = ribbonTab.InsertRibbonPanel(AddinGUID, 3, "Dev", "Dev"); LigneBase = Panneau.InsertRibbonRow(AddinGUID, "R"); Colonne = LigneBase.InsertRibbonRowPanel(AddinGUID, "RR"); Ligne = Colonne.InsertRibbonRow(AddinGUID, "RRR"); var Cmdlog = new Cmds.CmdLog(AppDs, AddinGUID); Cmdlog.registerCommand(); ListeCmds.Add(Cmdlog); Btn = LigneBase.InsertRibbonCommandButton(AddinGUID, dsRibbonButtonStyle_e.dsRibbonButtonStyle_SmallWithText, Cmdlog.ItemName(), Cmdlog.UserCommandID()); Ligne = Colonne.InsertRibbonRow(AddinGUID, "RRS"); var CmdTest = new Cmds.CmdTest(AppDs, AddinGUID); CmdTest.registerCommand(); ListeCmds.Add(CmdTest); Btn = LigneBase.InsertRibbonCommandButton(AddinGUID, dsRibbonButtonStyle_e.dsRibbonButtonStyle_SmallWithText, CmdTest.ItemName(), CmdTest.UserCommandID()); } } catch (Exception e) { Log.Write(e); } }
public static Commande CreateCommande() { Commande _Commande = new Commande(); _Commande.DtCreation = DateTime.Now.ToString(); _Commande.Eleve = new Eleve(); _Commande.Eleve.Id = 0; _Commande.Eleve.Nom = "LEBLOND"; _Commande.Eleve.Prenom = "Nicolas"; Ligne _Ligne1 = new Ligne(); _Ligne1.Produit = new Produit(); _Ligne1.Produit.Id = 0; _Ligne1.Produit.Libelle = "NOUVELLE ARMURE DU CHEVALIER DU ZODIAQUE / SAINT SEIYA: HADES V4 15TH"; _Ligne1.Produit.Prix = 151; _Ligne1.Produit.Poids = 10; _Ligne1.Produit.Hauteur = 100; _Ligne1.Produit.Largeur = 50; _Ligne1.Produit.Longueur = 15; _Ligne1.Quantite = 2; _Ligne1.Prix = 302; Ligne _Ligne2 = new Ligne(); _Ligne2.Produit = new Produit(); _Ligne2.Produit.Id = 1; _Ligne2.Produit.Libelle = "ARMURE DU CHEVALIER DU ZODIAQUE / SAINT SEIYA : ATHENA V4 10TH"; _Ligne2.Produit.Prix = 121; _Ligne2.Produit.Poids = 10; _Ligne2.Produit.Hauteur = 100; _Ligne2.Produit.Largeur = 50; _Ligne2.Produit.Longueur = 15; _Ligne2.Quantite = 1; _Ligne2.Prix = 121; _Commande.Lignes = new List <Ligne>(); _Commande.Lignes.Add(_Ligne1); _Commande.Lignes.Add(_Ligne2); _Commande.Frai = new Frai(); _Commande.Frai.Id = 2; _Commande.Frai.Libelle = "Colissimo (2 < kg ≤ 5)"; _Commande.Frai.Prix = 13.15; _Commande.Adresse = new Adresse(); _Commande.Adresse.Id = null; _Commande.Adresse.Destinataire = "LEBLOND Nicolas"; _Commande.Adresse.Ligne1 = "4 rue Parmentier"; _Commande.Adresse.Ligne2 = "Code : A2569"; _Commande.Adresse.CodePostal = "94130"; _Commande.Adresse.Ville = "Nogent sur Marne"; _Commande.Adresse.Pays = "France"; _Commande.Adresse.Telephone = "0641930458"; _Commande.Adresse.Email = "*****@*****.**"; _Commande.Prix = 436.15; return(_Commande); }
public Voyage(int voyageId, Ligne ligne, Train train) { VoyageId = voyageId; Ligne = ligne; Train = train; }