public Range(Common common) { var rangeMenu = common.MenuConfig.ShowMeMoreMenu.RangeMenu; CustomRangeMenu = rangeMenu.CustomRangeMenu; CustomRange2Menu = rangeMenu.CustomRange2Menu; CustomRange3Menu = rangeMenu.CustomRange3Menu; CustomRangeMenu.EnableItem.ValueChanged += OnValueChanged; CustomRangeMenu.RangeItem.ValueChanged += OnValueChanged; CustomRangeMenu.RedItem.ValueChanged += OnValueChanged; CustomRangeMenu.GreenItem.ValueChanged += OnValueChanged; CustomRangeMenu.BlueItem.ValueChanged += OnValueChanged; CustomRange2Menu.EnableItem.ValueChanged += OnValueChanged; CustomRange2Menu.RangeItem.ValueChanged += OnValueChanged; CustomRange2Menu.RedItem.ValueChanged += OnValueChanged; CustomRange2Menu.GreenItem.ValueChanged += OnValueChanged; CustomRange2Menu.BlueItem.ValueChanged += OnValueChanged; CustomRange3Menu.EnableItem.ValueChanged += OnValueChanged; CustomRange3Menu.RangeItem.ValueChanged += OnValueChanged; CustomRange3Menu.RedItem.ValueChanged += OnValueChanged; CustomRange3Menu.GreenItem.ValueChanged += OnValueChanged; CustomRange3Menu.BlueItem.ValueChanged += OnValueChanged; }
public RangeMenu(Menu.Items.Menu showMeMoreMenu) { var rangeMenu = showMeMoreMenu.CreateMenu("Range"); CustomRangeMenu = new CustomRangeMenu(rangeMenu); CustomRange2Menu = new CustomRange2Menu(rangeMenu); CustomRange3Menu = new CustomRange3Menu(rangeMenu); }