internal override void SetParametresToObject(dynamic obj) { if (obj is ISimulation <T> || obj is ProductBase) { } else { return; } switch (obj) { case Machine <T> m: DetermineAndUpdate(m); break; case Conveyor <T> con: conveyorPrototype = con; break; case MintBoxProduct mint: mintPrototype = mint; break; case RedBoxProduct red: redPrototype = red; break; case OrangeBoxProduct orange: orangePrototype = orange; break; case null: default: break; } }
private void MainForm_Load(object sender, EventArgs e) { MintBoxProduct mintBox = new MintBoxProduct(1, "mintbox", new Size(1, 2)); }