88 |
cycrow |
1 |
#pragma once
|
|
|
2 |
|
|
|
3 |
#include <spk.h>
|
|
|
4 |
|
|
|
5 |
using namespace System;
|
|
|
6 |
using namespace System::ComponentModel;
|
|
|
7 |
using namespace System::Collections;
|
|
|
8 |
using namespace System::Windows::Forms;
|
|
|
9 |
using namespace System::Data;
|
|
|
10 |
using namespace System::Drawing;
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
namespace PluginManager {
|
|
|
14 |
|
|
|
15 |
/// <summary>
|
|
|
16 |
/// Summary for EditWares
|
|
|
17 |
///
|
|
|
18 |
/// WARNING: If you change the name of this class, you will need to change the
|
|
|
19 |
/// 'Resource File Name' property for the managed resource compiler tool
|
|
|
20 |
/// associated with all .resx files this class depends on. Otherwise,
|
|
|
21 |
/// the designers will not be able to interact properly with localized
|
|
|
22 |
/// resources associated with this form.
|
|
|
23 |
/// </summary>
|
|
|
24 |
public ref class EditWares : public System::Windows::Forms::Form
|
|
|
25 |
{
|
|
|
26 |
public:
|
|
|
27 |
EditWares(CPackages *pPackages) : _pPackages(pPackages)
|
|
|
28 |
{
|
|
|
29 |
InitializeComponent();
|
|
|
30 |
|
|
|
31 |
loadWares();
|
89 |
cycrow |
32 |
updateConflicts();
|
88 |
cycrow |
33 |
}
|
|
|
34 |
|
|
|
35 |
void loadWares();
|
89 |
cycrow |
36 |
void updateConflicts();
|
88 |
cycrow |
37 |
|
|
|
38 |
protected:
|
|
|
39 |
void editPrice();
|
|
|
40 |
void editNoto(int iNoto);
|
|
|
41 |
void reset();
|
|
|
42 |
|
|
|
43 |
String ^_price(int iPrice);
|
|
|
44 |
String ^_noto(int iNoto);
|
|
|
45 |
|
|
|
46 |
/// <summary>
|
|
|
47 |
/// Clean up any resources being used.
|
|
|
48 |
/// </summary>
|
|
|
49 |
~EditWares()
|
|
|
50 |
{
|
|
|
51 |
if (components)
|
|
|
52 |
{
|
|
|
53 |
delete components;
|
|
|
54 |
}
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
private:
|
|
|
58 |
CPackages *_pPackages;
|
|
|
59 |
private: System::Windows::Forms::ListView^ listView1;
|
|
|
60 |
private: System::Windows::Forms::ColumnHeader^ columnHeader1;
|
|
|
61 |
private: System::Windows::Forms::ColumnHeader^ columnHeader2;
|
|
|
62 |
private: System::Windows::Forms::Button^ button1;
|
|
|
63 |
private: System::Windows::Forms::ColumnHeader^ columnHeader3;
|
|
|
64 |
private: System::Windows::Forms::ImageList^ imageList1;
|
|
|
65 |
private: System::Windows::Forms::ColumnHeader^ columnHeader4;
|
|
|
66 |
private: System::Windows::Forms::ColumnHeader^ columnHeader5;
|
|
|
67 |
private: System::Windows::Forms::ColumnHeader^ columnHeader6;
|
|
|
68 |
private: System::Windows::Forms::ContextMenuStrip^ contextMenuStrip1;
|
|
|
69 |
private: System::Windows::Forms::ToolStripMenuItem^ editPriceToolStripMenuItem;
|
|
|
70 |
private: System::Windows::Forms::ToolStripMenuItem^ resetToolStripMenuItem;
|
|
|
71 |
|
|
|
72 |
private: System::Windows::Forms::ToolStripSeparator^ toolStripSeparator1;
|
|
|
73 |
private: System::Windows::Forms::ToolStripMenuItem^ editNotoToolStripMenuItem;
|
|
|
74 |
|
|
|
75 |
private: System::Windows::Forms::ColumnHeader^ columnHeader7;
|
|
|
76 |
private: System::Windows::Forms::ColumnHeader^ columnHeader8;
|
|
|
77 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem2;
|
|
|
78 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem3;
|
|
|
79 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem4;
|
|
|
80 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem5;
|
|
|
81 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem6;
|
|
|
82 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem7;
|
|
|
83 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem8;
|
|
|
84 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem9;
|
|
|
85 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem10;
|
|
|
86 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem11;
|
|
|
87 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem12;
|
|
|
88 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem13;
|
|
|
89 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem14;
|
|
|
90 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem15;
|
|
|
91 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem16;
|
|
|
92 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem17;
|
89 |
cycrow |
93 |
private: System::Windows::Forms::TabControl^ tabControl1;
|
|
|
94 |
private: System::Windows::Forms::TabPage^ tabPage1;
|
|
|
95 |
private: System::Windows::Forms::TabPage^ tabPage2;
|
|
|
96 |
private: System::Windows::Forms::ListView^ listView2;
|
|
|
97 |
private: System::Windows::Forms::ColumnHeader^ columnHeader9;
|
|
|
98 |
private: System::Windows::Forms::ColumnHeader^ columnHeader10;
|
|
|
99 |
private: System::Windows::Forms::ColumnHeader^ columnHeader11;
|
88 |
cycrow |
100 |
private: System::ComponentModel::IContainer^ components;
|
|
|
101 |
|
|
|
102 |
/// <summary>
|
|
|
103 |
/// Required designer variable.
|
|
|
104 |
/// </summary>
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
#pragma region Windows Form Designer generated code
|
|
|
108 |
/// <summary>
|
|
|
109 |
/// Required method for Designer support - do not modify
|
|
|
110 |
/// the contents of this method with the code editor.
|
|
|
111 |
/// </summary>
|
|
|
112 |
void InitializeComponent(void)
|
|
|
113 |
{
|
|
|
114 |
this->components = (gcnew System::ComponentModel::Container());
|
|
|
115 |
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(EditWares::typeid));
|
|
|
116 |
this->listView1 = (gcnew System::Windows::Forms::ListView());
|
|
|
117 |
this->columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
118 |
this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
119 |
this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
120 |
this->columnHeader5 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
121 |
this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
122 |
this->columnHeader6 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
123 |
this->columnHeader7 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
124 |
this->columnHeader8 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
125 |
this->contextMenuStrip1 = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
|
|
|
126 |
this->editPriceToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
127 |
this->editNotoToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
128 |
this->toolStripMenuItem2 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
129 |
this->toolStripMenuItem3 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
130 |
this->toolStripMenuItem4 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
131 |
this->toolStripMenuItem5 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
132 |
this->toolStripMenuItem6 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
133 |
this->toolStripMenuItem7 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
134 |
this->toolStripMenuItem8 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
135 |
this->toolStripMenuItem9 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
136 |
this->toolStripMenuItem10 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
137 |
this->toolStripMenuItem11 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
138 |
this->toolStripMenuItem12 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
139 |
this->toolStripMenuItem13 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
140 |
this->toolStripMenuItem14 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
141 |
this->toolStripMenuItem15 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
142 |
this->toolStripMenuItem16 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
143 |
this->toolStripMenuItem17 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
144 |
this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
|
|
|
145 |
this->resetToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
146 |
this->imageList1 = (gcnew System::Windows::Forms::ImageList(this->components));
|
|
|
147 |
this->button1 = (gcnew System::Windows::Forms::Button());
|
89 |
cycrow |
148 |
this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
|
|
|
149 |
this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
|
|
|
150 |
this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
|
|
|
151 |
this->listView2 = (gcnew System::Windows::Forms::ListView());
|
|
|
152 |
this->columnHeader9 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
153 |
this->columnHeader10 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
154 |
this->columnHeader11 = (gcnew System::Windows::Forms::ColumnHeader());
|
88 |
cycrow |
155 |
this->contextMenuStrip1->SuspendLayout();
|
89 |
cycrow |
156 |
this->tabControl1->SuspendLayout();
|
|
|
157 |
this->tabPage1->SuspendLayout();
|
|
|
158 |
this->tabPage2->SuspendLayout();
|
88 |
cycrow |
159 |
this->SuspendLayout();
|
|
|
160 |
//
|
|
|
161 |
// listView1
|
|
|
162 |
//
|
|
|
163 |
this->listView1->AllowColumnReorder = true;
|
|
|
164 |
this->listView1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)
|
|
|
165 |
| System::Windows::Forms::AnchorStyles::Left)
|
|
|
166 |
| System::Windows::Forms::AnchorStyles::Right));
|
|
|
167 |
this->listView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(8) {this->columnHeader1, this->columnHeader3,
|
|
|
168 |
this->columnHeader4, this->columnHeader5, this->columnHeader2, this->columnHeader6, this->columnHeader7, this->columnHeader8});
|
|
|
169 |
this->listView1->ContextMenuStrip = this->contextMenuStrip1;
|
|
|
170 |
this->listView1->FullRowSelect = true;
|
|
|
171 |
this->listView1->HideSelection = false;
|
|
|
172 |
this->listView1->LargeImageList = this->imageList1;
|
89 |
cycrow |
173 |
this->listView1->Location = System::Drawing::Point(-4, 0);
|
88 |
cycrow |
174 |
this->listView1->MultiSelect = false;
|
|
|
175 |
this->listView1->Name = L"listView1";
|
89 |
cycrow |
176 |
this->listView1->Size = System::Drawing::Size(903, 503);
|
88 |
cycrow |
177 |
this->listView1->SmallImageList = this->imageList1;
|
|
|
178 |
this->listView1->TabIndex = 0;
|
|
|
179 |
this->listView1->UseCompatibleStateImageBehavior = false;
|
|
|
180 |
this->listView1->View = System::Windows::Forms::View::Details;
|
|
|
181 |
//
|
|
|
182 |
// columnHeader1
|
|
|
183 |
//
|
|
|
184 |
this->columnHeader1->Text = L"Ware";
|
|
|
185 |
//
|
|
|
186 |
// columnHeader3
|
|
|
187 |
//
|
|
|
188 |
this->columnHeader3->Text = L"Type";
|
|
|
189 |
//
|
|
|
190 |
// columnHeader4
|
|
|
191 |
//
|
|
|
192 |
this->columnHeader4->Text = L"Price";
|
|
|
193 |
this->columnHeader4->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
|
|
|
194 |
//
|
|
|
195 |
// columnHeader5
|
|
|
196 |
//
|
|
|
197 |
this->columnHeader5->Text = L"Notority";
|
|
|
198 |
this->columnHeader5->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
|
|
|
199 |
//
|
|
|
200 |
// columnHeader2
|
|
|
201 |
//
|
|
|
202 |
this->columnHeader2->Text = L"Description";
|
|
|
203 |
//
|
|
|
204 |
// columnHeader6
|
|
|
205 |
//
|
|
|
206 |
this->columnHeader6->Text = L"ID";
|
|
|
207 |
//
|
|
|
208 |
// columnHeader7
|
|
|
209 |
//
|
|
|
210 |
this->columnHeader7->Width = 0;
|
|
|
211 |
//
|
|
|
212 |
// columnHeader8
|
|
|
213 |
//
|
|
|
214 |
this->columnHeader8->Width = 0;
|
|
|
215 |
//
|
|
|
216 |
// contextMenuStrip1
|
|
|
217 |
//
|
|
|
218 |
this->contextMenuStrip1->ImageScalingSize = System::Drawing::Size(32, 32);
|
|
|
219 |
this->contextMenuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->editPriceToolStripMenuItem,
|
|
|
220 |
this->editNotoToolStripMenuItem, this->toolStripSeparator1, this->resetToolStripMenuItem});
|
|
|
221 |
this->contextMenuStrip1->Name = L"contextMenuStrip1";
|
89 |
cycrow |
222 |
this->contextMenuStrip1->Size = System::Drawing::Size(174, 124);
|
88 |
cycrow |
223 |
this->contextMenuStrip1->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &EditWares::contextMenuStrip1_Opening);
|
|
|
224 |
//
|
|
|
225 |
// editPriceToolStripMenuItem
|
|
|
226 |
//
|
|
|
227 |
this->editPriceToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"editPriceToolStripMenuItem.Image")));
|
|
|
228 |
this->editPriceToolStripMenuItem->Name = L"editPriceToolStripMenuItem";
|
|
|
229 |
this->editPriceToolStripMenuItem->Size = System::Drawing::Size(173, 38);
|
|
|
230 |
this->editPriceToolStripMenuItem->Text = L"Edit Price";
|
|
|
231 |
this->editPriceToolStripMenuItem->Click += gcnew System::EventHandler(this, &EditWares::editPriceToolStripMenuItem_Click);
|
|
|
232 |
//
|
|
|
233 |
// editNotoToolStripMenuItem
|
|
|
234 |
//
|
|
|
235 |
this->editNotoToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(16) {this->toolStripMenuItem2,
|
|
|
236 |
this->toolStripMenuItem3, this->toolStripMenuItem4, this->toolStripMenuItem5, this->toolStripMenuItem6, this->toolStripMenuItem7,
|
|
|
237 |
this->toolStripMenuItem8, this->toolStripMenuItem9, this->toolStripMenuItem10, this->toolStripMenuItem11, this->toolStripMenuItem12,
|
|
|
238 |
this->toolStripMenuItem13, this->toolStripMenuItem14, this->toolStripMenuItem15, this->toolStripMenuItem16, this->toolStripMenuItem17});
|
|
|
239 |
this->editNotoToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"editNotoToolStripMenuItem.Image")));
|
|
|
240 |
this->editNotoToolStripMenuItem->Name = L"editNotoToolStripMenuItem";
|
|
|
241 |
this->editNotoToolStripMenuItem->Size = System::Drawing::Size(173, 38);
|
|
|
242 |
this->editNotoToolStripMenuItem->Text = L"Edit Notoriety";
|
|
|
243 |
//
|
|
|
244 |
// toolStripMenuItem2
|
|
|
245 |
//
|
|
|
246 |
this->toolStripMenuItem2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem2.Image")));
|
|
|
247 |
this->toolStripMenuItem2->Name = L"toolStripMenuItem2";
|
89 |
cycrow |
248 |
this->toolStripMenuItem2->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
249 |
this->toolStripMenuItem2->Text = L"+10 (1,000,000)";
|
|
|
250 |
this->toolStripMenuItem2->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem2_Click);
|
|
|
251 |
//
|
|
|
252 |
// toolStripMenuItem3
|
|
|
253 |
//
|
|
|
254 |
this->toolStripMenuItem3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem3.Image")));
|
|
|
255 |
this->toolStripMenuItem3->Name = L"toolStripMenuItem3";
|
89 |
cycrow |
256 |
this->toolStripMenuItem3->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
257 |
this->toolStripMenuItem3->Text = L"+9 (100,000)";
|
|
|
258 |
this->toolStripMenuItem3->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem3_Click);
|
|
|
259 |
//
|
|
|
260 |
// toolStripMenuItem4
|
|
|
261 |
//
|
|
|
262 |
this->toolStripMenuItem4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem4.Image")));
|
|
|
263 |
this->toolStripMenuItem4->Name = L"toolStripMenuItem4";
|
89 |
cycrow |
264 |
this->toolStripMenuItem4->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
265 |
this->toolStripMenuItem4->Text = L"+8 (33,333)";
|
|
|
266 |
this->toolStripMenuItem4->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem4_Click);
|
|
|
267 |
//
|
|
|
268 |
// toolStripMenuItem5
|
|
|
269 |
//
|
|
|
270 |
this->toolStripMenuItem5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem5.Image")));
|
|
|
271 |
this->toolStripMenuItem5->Name = L"toolStripMenuItem5";
|
89 |
cycrow |
272 |
this->toolStripMenuItem5->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
273 |
this->toolStripMenuItem5->Text = L"+7 (10,000)";
|
|
|
274 |
this->toolStripMenuItem5->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem5_Click);
|
|
|
275 |
//
|
|
|
276 |
// toolStripMenuItem6
|
|
|
277 |
//
|
|
|
278 |
this->toolStripMenuItem6->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem6.Image")));
|
|
|
279 |
this->toolStripMenuItem6->Name = L"toolStripMenuItem6";
|
89 |
cycrow |
280 |
this->toolStripMenuItem6->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
281 |
this->toolStripMenuItem6->Text = L"+6 (3,333)";
|
|
|
282 |
this->toolStripMenuItem6->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem6_Click);
|
|
|
283 |
//
|
|
|
284 |
// toolStripMenuItem7
|
|
|
285 |
//
|
|
|
286 |
this->toolStripMenuItem7->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem7.Image")));
|
|
|
287 |
this->toolStripMenuItem7->Name = L"toolStripMenuItem7";
|
89 |
cycrow |
288 |
this->toolStripMenuItem7->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
289 |
this->toolStripMenuItem7->Text = L"+5 (1,000)";
|
|
|
290 |
this->toolStripMenuItem7->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem7_Click);
|
|
|
291 |
//
|
|
|
292 |
// toolStripMenuItem8
|
|
|
293 |
//
|
|
|
294 |
this->toolStripMenuItem8->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem8.Image")));
|
|
|
295 |
this->toolStripMenuItem8->Name = L"toolStripMenuItem8";
|
89 |
cycrow |
296 |
this->toolStripMenuItem8->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
297 |
this->toolStripMenuItem8->Text = L"+4 (333)";
|
|
|
298 |
this->toolStripMenuItem8->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem8_Click);
|
|
|
299 |
//
|
|
|
300 |
// toolStripMenuItem9
|
|
|
301 |
//
|
|
|
302 |
this->toolStripMenuItem9->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem9.Image")));
|
|
|
303 |
this->toolStripMenuItem9->Name = L"toolStripMenuItem9";
|
89 |
cycrow |
304 |
this->toolStripMenuItem9->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
305 |
this->toolStripMenuItem9->Text = L"+3 (100)";
|
|
|
306 |
this->toolStripMenuItem9->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem9_Click);
|
|
|
307 |
//
|
|
|
308 |
// toolStripMenuItem10
|
|
|
309 |
//
|
|
|
310 |
this->toolStripMenuItem10->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem10.Image")));
|
|
|
311 |
this->toolStripMenuItem10->Name = L"toolStripMenuItem10";
|
89 |
cycrow |
312 |
this->toolStripMenuItem10->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
313 |
this->toolStripMenuItem10->Text = L"+2 (33)";
|
|
|
314 |
this->toolStripMenuItem10->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem10_Click);
|
|
|
315 |
//
|
|
|
316 |
// toolStripMenuItem11
|
|
|
317 |
//
|
|
|
318 |
this->toolStripMenuItem11->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem11.Image")));
|
|
|
319 |
this->toolStripMenuItem11->Name = L"toolStripMenuItem11";
|
89 |
cycrow |
320 |
this->toolStripMenuItem11->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
321 |
this->toolStripMenuItem11->Text = L"+ 1 (10)";
|
|
|
322 |
this->toolStripMenuItem11->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem11_Click);
|
|
|
323 |
//
|
|
|
324 |
// toolStripMenuItem12
|
|
|
325 |
//
|
|
|
326 |
this->toolStripMenuItem12->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem12.Image")));
|
|
|
327 |
this->toolStripMenuItem12->Name = L"toolStripMenuItem12";
|
89 |
cycrow |
328 |
this->toolStripMenuItem12->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
329 |
this->toolStripMenuItem12->Text = L"0 (-10)";
|
|
|
330 |
this->toolStripMenuItem12->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem12_Click);
|
|
|
331 |
//
|
|
|
332 |
// toolStripMenuItem13
|
|
|
333 |
//
|
|
|
334 |
this->toolStripMenuItem13->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem13.Image")));
|
|
|
335 |
this->toolStripMenuItem13->Name = L"toolStripMenuItem13";
|
89 |
cycrow |
336 |
this->toolStripMenuItem13->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
337 |
this->toolStripMenuItem13->Text = L"-1 (-100)";
|
|
|
338 |
this->toolStripMenuItem13->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem13_Click);
|
|
|
339 |
//
|
|
|
340 |
// toolStripMenuItem14
|
|
|
341 |
//
|
|
|
342 |
this->toolStripMenuItem14->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem14.Image")));
|
|
|
343 |
this->toolStripMenuItem14->Name = L"toolStripMenuItem14";
|
89 |
cycrow |
344 |
this->toolStripMenuItem14->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
345 |
this->toolStripMenuItem14->Text = L"-2 (-1,000)";
|
|
|
346 |
this->toolStripMenuItem14->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem14_Click);
|
|
|
347 |
//
|
|
|
348 |
// toolStripMenuItem15
|
|
|
349 |
//
|
|
|
350 |
this->toolStripMenuItem15->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem15.Image")));
|
|
|
351 |
this->toolStripMenuItem15->Name = L"toolStripMenuItem15";
|
89 |
cycrow |
352 |
this->toolStripMenuItem15->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
353 |
this->toolStripMenuItem15->Text = L"-3 (-10,000)";
|
|
|
354 |
this->toolStripMenuItem15->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem15_Click);
|
|
|
355 |
//
|
|
|
356 |
// toolStripMenuItem16
|
|
|
357 |
//
|
|
|
358 |
this->toolStripMenuItem16->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem16.Image")));
|
|
|
359 |
this->toolStripMenuItem16->Name = L"toolStripMenuItem16";
|
89 |
cycrow |
360 |
this->toolStripMenuItem16->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
361 |
this->toolStripMenuItem16->Text = L"-4 (-100,000)";
|
|
|
362 |
this->toolStripMenuItem16->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem16_Click);
|
|
|
363 |
//
|
|
|
364 |
// toolStripMenuItem17
|
|
|
365 |
//
|
|
|
366 |
this->toolStripMenuItem17->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem17.Image")));
|
|
|
367 |
this->toolStripMenuItem17->Name = L"toolStripMenuItem17";
|
89 |
cycrow |
368 |
this->toolStripMenuItem17->Size = System::Drawing::Size(153, 22);
|
88 |
cycrow |
369 |
this->toolStripMenuItem17->Text = L"-5 (-1,000,000)";
|
|
|
370 |
this->toolStripMenuItem17->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem17_Click);
|
|
|
371 |
//
|
|
|
372 |
// toolStripSeparator1
|
|
|
373 |
//
|
|
|
374 |
this->toolStripSeparator1->Name = L"toolStripSeparator1";
|
|
|
375 |
this->toolStripSeparator1->Size = System::Drawing::Size(170, 6);
|
|
|
376 |
//
|
|
|
377 |
// resetToolStripMenuItem
|
|
|
378 |
//
|
|
|
379 |
this->resetToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"resetToolStripMenuItem.Image")));
|
|
|
380 |
this->resetToolStripMenuItem->Name = L"resetToolStripMenuItem";
|
|
|
381 |
this->resetToolStripMenuItem->Size = System::Drawing::Size(173, 38);
|
|
|
382 |
this->resetToolStripMenuItem->Text = L"Reset to Default";
|
|
|
383 |
this->resetToolStripMenuItem->Click += gcnew System::EventHandler(this, &EditWares::resetToolStripMenuItem_Click);
|
|
|
384 |
//
|
|
|
385 |
// imageList1
|
|
|
386 |
//
|
|
|
387 |
this->imageList1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^ >(resources->GetObject(L"imageList1.ImageStream")));
|
|
|
388 |
this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
|
|
|
389 |
this->imageList1->Images->SetKeyName(0, L"label1.Image.png");
|
89 |
cycrow |
390 |
this->imageList1->Images->SetKeyName(1, L"emblem_cvs_conflict.png");
|
|
|
391 |
this->imageList1->Images->SetKeyName(2, L"yes.png");
|
|
|
392 |
this->imageList1->Images->SetKeyName(3, L"no.png");
|
88 |
cycrow |
393 |
//
|
|
|
394 |
// button1
|
|
|
395 |
//
|
|
|
396 |
this->button1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
|
|
|
397 |
this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
|
89 |
cycrow |
398 |
this->button1->Location = System::Drawing::Point(825, 563);
|
88 |
cycrow |
399 |
this->button1->Name = L"button1";
|
|
|
400 |
this->button1->Size = System::Drawing::Size(90, 33);
|
|
|
401 |
this->button1->TabIndex = 1;
|
|
|
402 |
this->button1->Text = L"Close";
|
|
|
403 |
this->button1->UseVisualStyleBackColor = true;
|
|
|
404 |
this->button1->Click += gcnew System::EventHandler(this, &EditWares::button1_Click);
|
|
|
405 |
//
|
89 |
cycrow |
406 |
// tabControl1
|
|
|
407 |
//
|
|
|
408 |
this->tabControl1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)
|
|
|
409 |
| System::Windows::Forms::AnchorStyles::Left)
|
|
|
410 |
| System::Windows::Forms::AnchorStyles::Right));
|
|
|
411 |
this->tabControl1->Controls->Add(this->tabPage1);
|
|
|
412 |
this->tabControl1->Controls->Add(this->tabPage2);
|
|
|
413 |
this->tabControl1->ImageList = this->imageList1;
|
|
|
414 |
this->tabControl1->Location = System::Drawing::Point(12, 12);
|
|
|
415 |
this->tabControl1->Name = L"tabControl1";
|
|
|
416 |
this->tabControl1->SelectedIndex = 0;
|
|
|
417 |
this->tabControl1->Size = System::Drawing::Size(903, 542);
|
|
|
418 |
this->tabControl1->TabIndex = 2;
|
|
|
419 |
//
|
|
|
420 |
// tabPage1
|
|
|
421 |
//
|
|
|
422 |
this->tabPage1->Controls->Add(this->listView1);
|
|
|
423 |
this->tabPage1->ImageKey = L"label1.Image.png";
|
|
|
424 |
this->tabPage1->Location = System::Drawing::Point(4, 39);
|
|
|
425 |
this->tabPage1->Name = L"tabPage1";
|
|
|
426 |
this->tabPage1->Padding = System::Windows::Forms::Padding(3);
|
|
|
427 |
this->tabPage1->Size = System::Drawing::Size(895, 499);
|
|
|
428 |
this->tabPage1->TabIndex = 0;
|
|
|
429 |
this->tabPage1->Text = L"Wares";
|
|
|
430 |
this->tabPage1->UseVisualStyleBackColor = true;
|
|
|
431 |
//
|
|
|
432 |
// tabPage2
|
|
|
433 |
//
|
|
|
434 |
this->tabPage2->Controls->Add(this->listView2);
|
|
|
435 |
this->tabPage2->ImageIndex = 1;
|
|
|
436 |
this->tabPage2->Location = System::Drawing::Point(4, 39);
|
|
|
437 |
this->tabPage2->Name = L"tabPage2";
|
|
|
438 |
this->tabPage2->Padding = System::Windows::Forms::Padding(3);
|
|
|
439 |
this->tabPage2->Size = System::Drawing::Size(895, 499);
|
|
|
440 |
this->tabPage2->TabIndex = 1;
|
|
|
441 |
this->tabPage2->Text = L"Conflicts";
|
|
|
442 |
this->tabPage2->UseVisualStyleBackColor = true;
|
|
|
443 |
//
|
|
|
444 |
// listView2
|
|
|
445 |
//
|
|
|
446 |
this->listView2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)
|
|
|
447 |
| System::Windows::Forms::AnchorStyles::Left)
|
|
|
448 |
| System::Windows::Forms::AnchorStyles::Right));
|
|
|
449 |
this->listView2->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(3) {this->columnHeader9, this->columnHeader10,
|
|
|
450 |
this->columnHeader11});
|
|
|
451 |
this->listView2->FullRowSelect = true;
|
|
|
452 |
this->listView2->LargeImageList = this->imageList1;
|
|
|
453 |
this->listView2->Location = System::Drawing::Point(-4, 0);
|
|
|
454 |
this->listView2->Name = L"listView2";
|
|
|
455 |
this->listView2->Size = System::Drawing::Size(903, 503);
|
|
|
456 |
this->listView2->SmallImageList = this->imageList1;
|
|
|
457 |
this->listView2->TabIndex = 0;
|
|
|
458 |
this->listView2->UseCompatibleStateImageBehavior = false;
|
|
|
459 |
this->listView2->View = System::Windows::Forms::View::Details;
|
|
|
460 |
//
|
|
|
461 |
// columnHeader9
|
|
|
462 |
//
|
|
|
463 |
this->columnHeader9->Text = L"Package";
|
|
|
464 |
//
|
|
|
465 |
// columnHeader10
|
|
|
466 |
//
|
|
|
467 |
this->columnHeader10->Text = L"Name";
|
|
|
468 |
//
|
|
|
469 |
// columnHeader11
|
|
|
470 |
//
|
|
|
471 |
this->columnHeader11->Text = L"Description";
|
|
|
472 |
//
|
88 |
cycrow |
473 |
// EditWares
|
|
|
474 |
//
|
89 |
cycrow |
475 |
this->ClientSize = System::Drawing::Size(927, 608);
|
|
|
476 |
this->Controls->Add(this->tabControl1);
|
88 |
cycrow |
477 |
this->Controls->Add(this->button1);
|
|
|
478 |
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
|
|
|
479 |
this->Name = L"EditWares";
|
|
|
480 |
this->Text = L"Used Wares";
|
|
|
481 |
this->contextMenuStrip1->ResumeLayout(false);
|
89 |
cycrow |
482 |
this->tabControl1->ResumeLayout(false);
|
|
|
483 |
this->tabPage1->ResumeLayout(false);
|
|
|
484 |
this->tabPage2->ResumeLayout(false);
|
88 |
cycrow |
485 |
this->ResumeLayout(false);
|
|
|
486 |
|
|
|
487 |
}
|
|
|
488 |
#pragma endregion
|
|
|
489 |
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
490 |
}
|
|
|
491 |
private: System::Void editPriceToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
492 |
this->editPrice();
|
|
|
493 |
}
|
|
|
494 |
private: System::Void contextMenuStrip1_Opening(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) {
|
|
|
495 |
if ( !this->listView1->SelectedItems->Count ) e->Cancel = true;
|
|
|
496 |
}
|
|
|
497 |
private: System::Void resetToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
498 |
this->reset();
|
|
|
499 |
}
|
|
|
500 |
private: System::Void toolStripMenuItem2_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
501 |
this->editNoto(1000000);
|
|
|
502 |
}
|
|
|
503 |
private: System::Void toolStripMenuItem17_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
504 |
this->editNoto(-1000000);
|
|
|
505 |
}
|
|
|
506 |
private: System::Void toolStripMenuItem16_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
507 |
this->editNoto(-100000);
|
|
|
508 |
}
|
|
|
509 |
private: System::Void toolStripMenuItem3_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
510 |
this->editNoto(100000);
|
|
|
511 |
}
|
|
|
512 |
private: System::Void toolStripMenuItem4_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
513 |
this->editNoto(33333);
|
|
|
514 |
}
|
|
|
515 |
private: System::Void toolStripMenuItem5_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
516 |
this->editNoto(10000);
|
|
|
517 |
}
|
|
|
518 |
private: System::Void toolStripMenuItem6_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
519 |
this->editNoto(3333);
|
|
|
520 |
}
|
|
|
521 |
private: System::Void toolStripMenuItem7_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
522 |
this->editNoto(1000);
|
|
|
523 |
}
|
|
|
524 |
private: System::Void toolStripMenuItem8_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
525 |
this->editNoto(333);
|
|
|
526 |
}
|
|
|
527 |
private: System::Void toolStripMenuItem9_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
528 |
this->editNoto(100);
|
|
|
529 |
}
|
|
|
530 |
private: System::Void toolStripMenuItem10_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
531 |
this->editNoto(33);
|
|
|
532 |
}
|
|
|
533 |
private: System::Void toolStripMenuItem11_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
534 |
this->editNoto(10);
|
|
|
535 |
}
|
|
|
536 |
private: System::Void toolStripMenuItem12_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
537 |
this->editNoto(-10);
|
|
|
538 |
}
|
|
|
539 |
private: System::Void toolStripMenuItem13_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
540 |
this->editNoto(-100);
|
|
|
541 |
}
|
|
|
542 |
private: System::Void toolStripMenuItem14_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
543 |
this->editNoto(-1000);
|
|
|
544 |
}
|
|
|
545 |
private: System::Void toolStripMenuItem15_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
546 |
this->editNoto(-10000);
|
|
|
547 |
}
|
|
|
548 |
};
|
|
|
549 |
}
|