private void DropDownMenuLoadSettings_OnLoad(object sender, DropDownMenu.OnLoadEventArgs e) { //foreach (var l_Routine in WoWSharp.Plugins.LoadedRoutines) //{ // this.DropDownMenuCombatRoutines.AddButton(new DropDownMenu.DropDownButtonInfo() // { // Text = l_Routine.Name, // OnClick = () => // { // } // }); //} }
private void DropDownMenuCombatRoutines_OnLoad(object sender, DropDownMenu.OnLoadEventArgs e) { foreach (var l_Routine in WoWSharp.Plugins.LoadedRoutines) { this.DropDownMenuCombatRoutines.AddButton(new DropDownMenu.DropDownButtonInfo() { Text = l_Routine.Name, OnClick = () => { SetCombatRoutine(l_Routine); } }); } }