Exemple #1
0
        /*public TableLayoutPanel deplacerPersonnage(TableLayoutPanel pan)
         * {
         *  //carre.Controls.Add(pic, 0, 3);
         *  Control c = pan.GetControlFromPosition(0, 3);
         *  pan.SetCellPosition(c, new TableLayoutPanelCellPosition(2, 3));
         *  Console.Out.WriteLine("marche");
         *
         *  return pan;
         * }*/

        public CustomTableLayoutPanel deplacerPersonnage(CustomTableLayoutPanel pan)
        {
            //carre.Controls.Add(pic, 0, 3);
            Control c = pan.GetControlFromPosition(0, 3);

            pan.SetCellPosition(c, new TableLayoutPanelCellPosition(2, 3));
            Console.Out.WriteLine("marche");

            return(pan);
        }
Exemple #2
0
        public FabriqueManager(EnvironnementDeJeu monde, FactoryPersonnage persos)
        //public FabriqueManager(AbstractFabriqueDeJeu jeu, FactoryPersonnage persos)
        {
            EspaceDeJeu = monde;
            monde.CreerPlateauDeJeu(new FactoryDeJeuGuerre());
            LesPersonnages = persos;

            carre = new CustomTableLayoutPanel();

            LesPersonnes = new List <Personnage>();
            EtatMajor    = new Organisation();
        }
Exemple #3
0
        public FormViewAsTableControl()
        {
            this.ErrorIconPadding = 15;

            CustomTableLayoutPanel control = this.Control;

            control.FormView = this;

            control.CategoryRowStyle = new RowStyle(SizeType.AutoSize);
            control.PropertyRowStyle = new RowStyle(SizeType.AutoSize);

            control.LabelColumnStyle   = new ColumnStyle(SizeType.AutoSize);
            control.ControlColumnStyle = new ColumnStyle(SizeType.Percent, 100);
            control.ErrorColumnStyle   = new ColumnStyle(SizeType.Absolute, this.ErrorIconPadding);

            control.ShowCategories = true;
        }
Exemple #4
0
 public WinFormManager(CustomTableLayoutPanel panel)
 {
     PersonnagesDuJeu = panel.GetPersonnages();
 }