void GetChosenTables(SelectedChoice choice, out IList<Table2D> list2D, out IList<Table3D> list3D)
{
list2D = null;
list3D = null;
switch (choice) {
case SelectedChoice.All:
list2D = this.List2DSorted ();
list3D = this.List3DSorted ();
break;
case SelectedChoice.Selected:
list2D = this.List2DSelectedSorted ();
list3D = this.List3DSelectedSorted ();
break;
case SelectedChoice.Annotated:
list2D = this.List2DAnnotatedSorted ();
list3D = this.List3DAnnotatedSorted ();
break;
default:
throw new ArgumentOutOfRangeException ("choice", "unknown");
}
}