Exemplo n.º 1
0
        public CharacterValuesControl()
        {
            InitializeComponent();

            _attributes = new AttributesControl();
            _statistics = new BasicStatisticsControl();
            _defense = new DefenseControl();
            _factions = new FactionStandingsControl();

            _attributes.SizeChanged += new EventHandler(stats_SizeChanged);
            _statistics.SizeChanged += new EventHandler(stats_SizeChanged);
            _defense.SizeChanged += new EventHandler(stats_SizeChanged);
            _factions.SizeChanged += new EventHandler(stats_SizeChanged);

            ResizeAndSetControlLocation();

            this.Controls.Add(_attributes);
            this.Controls.Add(_statistics);
            this.Controls.Add(_defense);
            this.Controls.Add(_factions);
        }
        public CharacterValuesControl()
        {
            InitializeComponent();

            _attributes = new AttributesControl();
            _statistics = new BasicStatisticsControl();
            _defense    = new DefenseControl();
            _factions   = new FactionStandingsControl();

            _attributes.SizeChanged += new EventHandler(stats_SizeChanged);
            _statistics.SizeChanged += new EventHandler(stats_SizeChanged);
            _defense.SizeChanged    += new EventHandler(stats_SizeChanged);
            _factions.SizeChanged   += new EventHandler(stats_SizeChanged);

            ResizeAndSetControlLocation();

            this.Controls.Add(_attributes);
            this.Controls.Add(_statistics);
            this.Controls.Add(_defense);
            this.Controls.Add(_factions);
        }