using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ISXWoW;
using LavishVMRuntime;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
// ISXWoW reference
public ISXWoW.ISXWoW myWoW = new ISXWoW.ISXWoW();
// List of crap
public WoWItem myItemList;
// Populate our list
public void populateList()
{
//Make sure to lock the frame before doing anything that requires WoW data -- that way
// we know we're getting it all on the same frame as opposed to getting bits of it now,
// and bits of it later.
LavishVMAPI.Frame.Lock();
myItemList = WoWItem.Get("-inventory");
//Unlock the frame, we're done with it
LavishVMAPI.Frame.Unlock();
//Set our label to the first inventory item grabbed
label1.Text = myItemList.Name;
}
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
this.populateList();
}
}
}