Ejemplo n.º 1
0
        public ReagentEdit(ThingMachine newMachine) : this()
        {
            // populate us...
            machine = newMachine;

            listBoxReagents.DataSource    = machine.GetReagents();
            listBoxReagents.DisplayMember = "Name";
            listBoxReagents.ValueMember   = "Self";
        }
Ejemplo n.º 2
0
        public ReagentEdit(ThingMachine newMachine, int addQuantity, int topUpQuantity) : this()
        {
            // populate us...
            machine = newMachine;

            listBoxReagents.DataSource    = machine.GetReagents();
            listBoxReagents.DisplayMember = "Name";
            listBoxReagents.ValueMember   = "Self";

            AddQuantity   = addQuantity;
            TopUpQuantity = topUpQuantity;
        }