Forex_Strategy_Builder.Indicator_Dialog.SetDefaultGroup C# (CSharp) Method

SetDefaultGroup() private method

Sets the default logical group of the slot.
private SetDefaultGroup ( ) : void
return void
        void SetDefaultGroup()
        {
            if (slotType == SlotTypes.OpenFilter)
            {
                if (indicatorName == "Data Bars Filter" ||
                    indicatorName == "Date Filter"      ||
                    indicatorName == "Day of Month"     ||
                    indicatorName == "Enter Once"       ||
                    indicatorName == "Entry Time"       ||
                    indicatorName == "Long or Short"    ||
                    indicatorName == "Lot Limiter"      ||
                    indicatorName == "Random Filter")
                    cbxGroup.SelectedIndex = cbxGroup.Items.Count - 1; // "All" group.
                else
                    cbxGroup.SelectedIndex = 0;
            }

            if (slotType == SlotTypes.CloseFilter)
            {
                int index = slot - Data.Strategy.CloseSlot - 1;
                cbxGroup.SelectedIndex = index;
            }

            return;
        }