public MagicItemSelectForm(int level) { InitializeComponent(); Application.Idle += new EventHandler(Application_Idle); if (level > 0) { LevelRangePanel.SetLevelRange(level, level); } Browser.DocumentText = ""; ItemList_SelectedIndexChanged(null, null); update_list(); }
public TrapSelectForm() { InitializeComponent(); TrapList.ListViewItemSorter = new TrapSorter(); Application.Idle += new EventHandler(Application_Idle); if (Session.Project != null) { int min = Math.Max(1, Session.Project.Party.Level - 4); int max = Session.Project.Party.Level + 5; LevelRangePanel.SetLevelRange(min, max); } update_list(); Browser.DocumentText = ""; TrapList_SelectedIndexChanged(null, null); }