public PowerBrowserForm(string name, int level, IRole role, PowerCallback callback)
        {
            InitializeComponent();

            Application.Idle += new EventHandler(Application_Idle);

            fName     = name;
            fLevel    = level;
            fRole     = role;
            fCallback = callback;

            bool set_filter = FilterPanel.SetFilter(fLevel, fRole);

            if (!set_filter)
            {
                update_creature_list();

                if (SelectedCreatures.Count > 100)
                {
                    fShowAll = false;
                }

                update_powers();
            }
        }
Exemple #2
0
 public PowerBrowserForm(string name, int level, IRole role, PowerCallback callback)
 {
     this.InitializeComponent();
     Application.Idle += new EventHandler(this.Application_Idle);
     this.fName        = name;
     this.fLevel       = level;
     this.fRole        = role;
     this.fCallback    = callback;
     if (!this.FilterPanel.SetFilter(this.fLevel, this.fRole))
     {
         this.update_creature_list();
         if (this.SelectedCreatures.Count > 100)
         {
             this.fShowAll = false;
         }
         this.update_powers();
     }
 }