Пример #1
0
            public static void SwapSelectedSecondary()
            {
                int counter = 0;

                int[] selection = { 0, 0 };
                for (int i = 0; i < 8; i++)
                {
                    if (isSecondarySelected[i])
                    {
                        selection[counter] = i;
                        counter++;
                    }
                    if (counter == 2)
                    {
                        break;
                    }
                }
                string temp = Secondary[selection[0]];

                Secondary[selection[0]] = Secondary[selection[1]];
                Secondary[selection[1]] = temp;

                isSecondarySelected[selection[0]] = false;
                isSecondarySelected[selection[1]] = false;
                MPAutoSelection.SecondaryNeverSelect[selection[0]] = false;
                MPAutoSelection.SecondaryNeverSelect[selection[1]] = false;

                saveToFile();
                MPAutoSelection.Initialise();
            }
            public static void SwapSelectedSecondary()
            {
                int counter = 0;

                int[] selection = { 0, 0 };
                for (int i = 0; i < 8; i++)
                {
                    if (isSecondarySelected[i])
                    {
                        selection[counter] = i;
                        counter++;
                    }
                    if (counter == 2)
                    {
                        break;
                    }
                }
                string temp = MPAutoSelection.SecondaryPriorityArray[selection[0]];

                MPAutoSelection.SecondaryPriorityArray[selection[0]] = MPAutoSelection.SecondaryPriorityArray[selection[1]];
                MPAutoSelection.SecondaryPriorityArray[selection[1]] = temp;

                isSecondarySelected[selection[0]] = false;
                isSecondarySelected[selection[1]] = false;
                MPAutoSelection.SecondaryNeverSelect[selection[0]] = false;
                MPAutoSelection.SecondaryNeverSelect[selection[1]] = false;

                ExtendedConfig.Section_AutoSelect.Set(true);
                MPAutoSelection.Initialise();
            }