public DataTable Get(int id) { DataTable simDt; switch (id) { case 1: simDt = SR.GetReg(); //DataTable break; case 2: simDt = SR.GetSelectedReg(simSelRegArray); //DataTable break; default: simDt = new DataTable(); break; } return(simDt); }