ScoobyRom.Data.GetChosenTables C# (CSharp) Method

GetChosenTables() private method

private GetChosenTables ( SelectedChoice choice, IList &list2D, IList &list3D ) : void
choice SelectedChoice
list2D IList
list3D IList
return void
        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");
            }
        }