- 01
 - 02
 - 03
 - 04
 - 05
 - 06
 - 07
 - 08
 - 09
 - 10
 - 11
 - 12
 - 13
 - 14
 - 15
 - 16
 - 17
 - 18
 - 19
 - 20
 - 21
 - 22
 - 23
 - 24
 - 25
 - 26
 - 27
 - 28
 - 29
 - 30
 - 31
 - 32
 - 33
 - 34
 - 35
 - 36
 - 37
 - 38
 - 39
 - 40
 - 41
 - 42
 - 43
 - 44
 - 45
 - 46
 - 47
 - 48
 - 49
 - 50
 - 51
 - 52
 - 53
 
                        public  static  string      LoadGridDT          (TObjects pList, out DataTable Dt, params object[] pArgs)
...              
                switch (pList)
                {
                    case TObjects.Radio                 :
                        if (pArgs.Length == 1 && pArgs[0] is int)
                            vLoadResult = Protocol.Radionuclide.Load((int)pArgs[0], out Dt);
                        else if (pArgs.Length > 1 && pArgs[0] is int && pArgs[1] is bool)
                            vLoadResult = Part2.Radionuclide.Load((int)pArgs[0], out Dt);
                        else vLoadResult = Radionuclide.Load(out Dt);
                        break;
                    case TObjects.Protocol              :
                        // [0](int): Тип протокола; [1](int): Очередь; [2](bool): Активность; [3](int): Объект
                if (pArgs.Length > 3 && pArgs[0] is int && pArgs[1] is int && pArgs[2] is bool && pArgs[3] is int)
                    if (pArgs.Length > 4 && pArgs[4] is int)
                        vLoadResult = Protocol.LoadList((int)pArgs[0], (int)pArgs[1], (int)pArgs[3], (bool)pArgs[2], out Dt, (int)pArgs[4]);
                    else
                    {
                        if (pArgs.Length > 4 && pArgs[4] is bool && (bool)pArgs[4] == true) // 5-й аргумент для загрузки детализированного списка протоколов с учетом объекта отбора
                            vLoadResult = Protocol.Load((int)pArgs[0], (int)pArgs[1], (int)pArgs[3], (bool)pArgs[2], out Dt);
                        else // недетализированный список протоколов с учетом объекта отбора
                            vLoadResult = Protocol.LoadList((int)pArgs[0], (int)pArgs[1], (int)pArgs[3], (bool)pArgs[2], out Dt);
                    }
                else
                // [0](List<int>): Типы протокола; [1](int): Очередь; [2](int): Id место отбора; [3](bool): Активность
                if (pArgs.Length > 3 && pArgs[0] is List<int> && pArgs[1] is int && pArgs[2] is int && pArgs[3] is bool)
                    if (pArgs.Length > 4 && pArgs[4] is int)
                        vLoadResult = Protocol.LoadList((List<int>)pArgs[0], (int)pArgs[1], (int)pArgs[2], (bool)pArgs[3], out Dt, (int)pArgs[4]);
                    else
                        vLoadResult = Protocol.Load((List<int>)pArgs[0], (int)pArgs[1], (int)pArgs[2], (bool)pArgs[3], out Dt);
                else
                // [0](List<int>): Типы протокола; [1](int): Очередь; [2](bool): Активность
                if (pArgs.Length > 2 && pArgs[0] is List<int> && pArgs[1] is int && pArgs[2] is bool)
                    if (pArgs.Length > 3 && pArgs[3] is int)
                        vLoadResult = Protocol.LoadList((List<int>)pArgs[0], (int)pArgs[1], (bool)pArgs[2], out Dt, (int)pArgs[3]);
                    else
                        vLoadResult = Protocol.LoadList((List<int>)pArgs[0], (int)pArgs[1], (bool)pArgs[2], out Dt);
                else
                // [0](int): Тип протокола; [1](int): Очередь; [2](bool): Активность;
                if (pArgs.Length > 2 && pArgs[0] is int && pArgs[1] is int && pArgs[2] is bool)
                    if (pArgs.Length > 4 && pArgs[3] is bool && pArgs[4] is int)
                        vLoadResult = Protocol.LoadList((int)pArgs[0], (int)pArgs[1], (bool)pArgs[2], out Dt, (int)pArgs[4]);
                    else
                        vLoadResult = Protocol.Load((int)pArgs[0], (int)pArgs[1], (bool)pArgs[2], out Dt);
                else
                // [0](int): Тип протокола; [1](int): Очередь
                if (pArgs.Length > 1 && pArgs[0] is int && pArgs[1] is int)
                    if (pArgs.Length > 2 && pArgs[2] is int)
                        vLoadResult = Protocol.LoadList((int)pArgs[0], (int)pArgs[1], out Dt, (int)pArgs[2]);
                    else
                        vLoadResult = Protocol.LoadList((int)pArgs[0], (int)pArgs[1], out Dt);
                else
...