public DataGridViewModel()
        {
            SpeciesRow.Add(new SpeciesRowViewModel());
            SpeciesRow[0].RowChanged += SpeciesEdit;

            RemoveCareer = new RemoveCommand(RemoveRow);

            messageService = new MsgBoxService();
        }
        void AddSubPop(SubPop subPop)
        {
            var spRow = new SpeciesRow()
            {
                SubPopulation = subPop,
                Dock = DockStyle.Top
            };
            spRow.MinimumSize = new Size(0, 23);

            spRow.Click += HandleSpeciesClicked;

            this._speciesContainer.Controls.Add(spRow);
        }
Beispiel #3
0
        Control MakeTallyRow(Control container, SubPop subPop)
        {
            var tallyButton = new SpeciesRow();

            tallyButton.SubPopulation = subPop;

            tallyButton.Click += new EventHandler(SpeciesButton_Click);
            tallyButton.Parent = container;
            tallyButton.Dock   = DockStyle.Left;
            tallyButton.Width  = SUB_POP_BUTTON_WIDTH;

            return(tallyButton);
        }
Beispiel #4
0
        void AddSubPop(SubPop subPop)
        {
            var spRow = new SpeciesRow()
            {
                SubPopulation = subPop,
                Dock          = DockStyle.Top
            };

            spRow.MinimumSize = new Size(0, 23);

            spRow.Click += HandleSpeciesClicked;

            this._speciesContainer.Controls.Add(spRow);
        }
        public Control MakeTallyRow(Control container, SubPop subPop)
        {
            var tallyButton = new SpeciesRow();
            tallyButton.SubPopulation = subPop;

            tallyButton.Click += new EventHandler(SpeciesButton_Click);
            tallyButton.Parent = container;
            tallyButton.Dock = DockStyle.Left;
            tallyButton.Width = SUB_POP_BUTTON_WIDTH;

            return tallyButton;
        }