Hey,
I have an item class:
#pragma once
using namespace System;
using namespace System::Drawing;
ref class Item
{
public:
Item(void);
int Type() { return _type; }
void Type(int value) { _type = value; }
String ^ Text() { return _text; }
void Text(String ^ value) { _text = value; }
static const int Types_Text = 0;
static const int Types_Image = 1;
private:
int _type;
String ^ _text;
};
I want to add a class to group the items, but am not sure how I would do it. So far, I just added to the form:
array<Item^>^ items = gcnew array<Item^>(itemCount);
for (int i = 0; i < itemCount; i++)
{
items[i] = (gcnew(Item));
}
I want to add this to a class, so that I can add sorting etc. and I will be having multiple item arrays.
Cheers