public ReagentEdit(ThingMachine newMachine) : this()
        {
            // populate us...
            machine = newMachine;

            listBoxReagents.DataSource    = machine.GetReagents();
            listBoxReagents.DisplayMember = "Name";
            listBoxReagents.ValueMember   = "Self";
        }
Exemple #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;
        }