Beispiel #1
0
        protected override void OnShown(EventArgs e)
        {
            listBox1.Items.Clear();
            SimcraftImpl.GenerateApls(SimcraftImpl.SimcraftProfilePath);

            /*if (Directory.Exists(@"Bots\Simcraft\Trunk\"))
             *
             * else
             *  SimcraftImpl.GenerateApls(@"Bots\Simcraft\Profiles\");*/
            foreach (var apl in SimcraftImpl.apls)
            {
                //if (apl.Key.Match(StyxWoW.Me.Class, StyxWoW.Me.Specialization, WoWContext.PvE))
                //{
                if (apl.Value.Class == StyxWoW.Me.Class)
                {
                    listBox1.Items.Add(apl.Value);
                }
                //SimcraftImpl.Write("Selecting: " + apl.Value.Name);
                //apl.Value.CreateBehavior();
                //return;
                //}
            }
            //SimcraftImpl.apls
            base.OnShown(e);
        }
Beispiel #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            SimcraftImpl.GenerateApls(SimcraftImpl.SimcraftProfilePath);
            listBox1.Items.Clear();

            foreach (var apl in SimcraftImpl.apls)
            {
                //if (apl.Key.Match(StyxWoW.Me.Class, StyxWoW.Me.Specialization, WoWContext.PvE))
                //{
                if (apl.Value.Class == StyxWoW.Me.Class)
                {
                    listBox1.Items.Add(apl.Value);
                }
                //SimcraftImpl.Write("Selecting: " + apl.Value.Name);
                //apl.Value.CreateBehavior();
                //return;
                //}
            }
        }