Subversion Repositories spk

Rev

Rev 170 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 170 Rev 218
Line 26... Line 26...
26
		{
26
		{
27
			InitializeComponent();
27
			InitializeComponent();
28
 
28
 
29
			m_iType = 0;
29
			m_iType = 0;
30
			this->Text = "Select Ship Entry";
30
			this->Text = "Select Ship Entry";
31
			m_lData = new Utils::CStringList;
31
			m_lData = new Utils::WStringList;
32
			m_iGroup = -1;
32
			m_iGroup = -1;
33
		}
33
		}
34
 
34
 
35
		void FillData()
35
		void FillData()
36
		{
36
		{
37
			for ( int i = 0; i < this->ListShip->SelectedItems->Count; i++ )
37
			for ( int i = 0; i < this->ListShip->SelectedItems->Count; i++ )
38
				m_lData->pushBack(_S(this->ListShip->SelectedItems[i]->Text), _S(this->ListShip->SelectedItems[i]->SubItems[1]->Text));
38
				m_lData->pushBack(_WS(this->ListShip->SelectedItems[i]->Text), _WS(this->ListShip->SelectedItems[i]->SubItems[1]->Text));
39
		}
39
		}
40
 
40
 
41
		Utils::CStringList *GetDataList() { return m_lData; }
41
		Utils::WStringList *GetDataList() { return m_lData; }
42
 
42
 
43
		void AddGroup(String ^text)
43
		void AddGroup(String ^text)
44
		{
44
		{
45
			ListViewGroup ^group = gcnew ListViewGroup(text, HorizontalAlignment::Left);
45
			ListViewGroup ^group = gcnew ListViewGroup(text, HorizontalAlignment::Left);
46
			this->ListShip->Groups->Add(group);
46
			this->ListShip->Groups->Add(group);
Line 140... Line 140...
140
 
140
 
141
	private:
141
	private:
142
		/// <summary>
142
		/// <summary>
143
		/// Required designer variable.
143
		/// Required designer variable.
144
		/// </summary>
144
		/// </summary>
145
		Utils::CStringList *m_lData;
145
		Utils::WStringList *m_lData;
146
		String ^m_sData;
146
		String ^m_sData;
147
		int		m_iType;
147
		int		m_iType;
148
		int		m_iGroup;
148
		int		m_iGroup;
149
 
149
 
150
 
150