// TricksterWorkTool.frmChargedItem
// Token: 0x060002C3 RID: 707 RVA: 0x0001E38C File Offset: 0x0001C58C
private void DisplayGoods(int Cate, int Cate0, int Cate1, int Cate2)
{
ButtonCellType buttonCellType = new ButtonCellType();
buttonCellType.ButtonColor = Color.LightSlateGray;
buttonCellType.TextColor = Color.White;
buttonCellType.Text = "DEL";
buttonCellType.Text = "INSERT";
this.spnGoodsSelect_Sheet1.Columns.Get(5).CellType = buttonCellType;
this.spnGoodsSelect_Sheet1.Columns.Get(5).HorizontalAlignment = CellHorizontalAlignment.Center;
this.spnGoodsSelect_Sheet1.Columns.Get(5).Label = " -";
this.spnGoodsSelect_Sheet1.Columns.Get(5).VerticalAlignment = CellVerticalAlignment.Center;
this.spnGoodsSelect_Sheet1.Columns.Get(5).Width = 70f;
this.spncGoodsList.Sheets[0].RowCount = 0;
SheetView sheetView = this.spncGoodsList.Sheets[0];
clsChargedItem clsChargedItem = this.objChargedItem;
SqlConnection cnGoodsDB = mod_Val.gCn.CnGoodsDB;
sheetView.DataSource = clsChargedItem.SelectGoodsAll(Cate, Cate0, Cate1, Cate2, ref cnGoodsDB);
int num = 0;
checked
{
int num2 = this.spncGoodsList.Sheets[0].RowCount - 1;
for (int i = num; i <= num2; i++)
{
if (Operators.ConditionalCompareObjectEqual(this.spncGoodsList.Sheets[0].GetValue(i, 12), "0", false))
{
this.spncGoodsList.Sheets[0].SetValue(i, 14, this.Category1[Conversions.ToInteger(Operators.SubtractObject(this.spncGoodsList.Sheets[0].GetValue(i, 13), 1)), Conversions.ToInteger(Operators.SubtractObject(this.spncGoodsList.Sheets[0].GetValue(i, 14), 1))]);
this.spncGoodsList.Sheets[0].SetValue(i, 13, this.Category0[Conversions.ToInteger(this.spncGoodsList.Sheets[0].GetValue(i, 12)), Conversions.ToInteger(Operators.SubtractObject(this.spncGoodsList.Sheets[0].GetValue(i, 13), 1))]);
this.spncGoodsList.Sheets[0].SetValue(i, 12, "Characters");
}
else
{
this.spncGoodsList.Sheets[0].SetValue(i, 14, this.Category1[Conversions.ToInteger(Operators.AddObject(this.spncGoodsList.Sheets[0].GetValue(i, 13), 5)), Conversions.ToInteger(Operators.SubtractObject(this.spncGoodsList.Sheets[0].GetValue(i, 14), 1))]);
this.spncGoodsList.Sheets[0].SetValue(i, 13, this.Category0[Conversions.ToInteger(this.spncGoodsList.Sheets[0].GetValue(i, 12)), Conversions.ToInteger(Operators.SubtractObject(this.spncGoodsList.Sheets[0].GetValue(i, 13), 1))]);
this.spncGoodsList.Sheets[0].SetValue(i, 12, "My Camp");
}
}
}
}