public void AddTempMulti(int idx1, int idx2) { if (m_PlotMulti != null) { m_PlotMulti.Delete(); m_PlotMulti = null; } BaseBazaarMulti multi = null; if (idx1 == 0) { switch (idx2) { case 0: multi = new CommodityStyle1(); break; case 1: multi = new CommodityStyle2(); break; case 2: multi = new CommodityStyle3(); break; } } else { switch (idx2) { case 0: multi = new PetStyle1(); break; case 1: multi = new PetStyle2(); break; case 2: multi = new PetStyle3(); break; } } if (multi != null) { PlotMulti = multi; BeginTempMultiTimer(); } }