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();
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
void loadWares();
|
|
|
35 |
|
|
|
36 |
protected:
|
|
|
37 |
void editPrice();
|
|
|
38 |
void editNoto(int iNoto);
|
|
|
39 |
void reset();
|
|
|
40 |
|
|
|
41 |
String ^_price(int iPrice);
|
|
|
42 |
String ^_noto(int iNoto);
|
|
|
43 |
|
|
|
44 |
/// <summary>
|
|
|
45 |
/// Clean up any resources being used.
|
|
|
46 |
/// </summary>
|
|
|
47 |
~EditWares()
|
|
|
48 |
{
|
|
|
49 |
if (components)
|
|
|
50 |
{
|
|
|
51 |
delete components;
|
|
|
52 |
}
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
private:
|
|
|
56 |
CPackages *_pPackages;
|
|
|
57 |
private: System::Windows::Forms::ListView^ listView1;
|
|
|
58 |
private: System::Windows::Forms::ColumnHeader^ columnHeader1;
|
|
|
59 |
private: System::Windows::Forms::ColumnHeader^ columnHeader2;
|
|
|
60 |
private: System::Windows::Forms::Button^ button1;
|
|
|
61 |
private: System::Windows::Forms::ColumnHeader^ columnHeader3;
|
|
|
62 |
private: System::Windows::Forms::ImageList^ imageList1;
|
|
|
63 |
private: System::Windows::Forms::ColumnHeader^ columnHeader4;
|
|
|
64 |
private: System::Windows::Forms::ColumnHeader^ columnHeader5;
|
|
|
65 |
private: System::Windows::Forms::ColumnHeader^ columnHeader6;
|
|
|
66 |
private: System::Windows::Forms::ContextMenuStrip^ contextMenuStrip1;
|
|
|
67 |
private: System::Windows::Forms::ToolStripMenuItem^ editPriceToolStripMenuItem;
|
|
|
68 |
private: System::Windows::Forms::ToolStripMenuItem^ resetToolStripMenuItem;
|
|
|
69 |
|
|
|
70 |
private: System::Windows::Forms::ToolStripSeparator^ toolStripSeparator1;
|
|
|
71 |
private: System::Windows::Forms::ToolStripMenuItem^ editNotoToolStripMenuItem;
|
|
|
72 |
|
|
|
73 |
private: System::Windows::Forms::ColumnHeader^ columnHeader7;
|
|
|
74 |
private: System::Windows::Forms::ColumnHeader^ columnHeader8;
|
|
|
75 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem2;
|
|
|
76 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem3;
|
|
|
77 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem4;
|
|
|
78 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem5;
|
|
|
79 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem6;
|
|
|
80 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem7;
|
|
|
81 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem8;
|
|
|
82 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem9;
|
|
|
83 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem10;
|
|
|
84 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem11;
|
|
|
85 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem12;
|
|
|
86 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem13;
|
|
|
87 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem14;
|
|
|
88 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem15;
|
|
|
89 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem16;
|
|
|
90 |
private: System::Windows::Forms::ToolStripMenuItem^ toolStripMenuItem17;
|
|
|
91 |
private: System::ComponentModel::IContainer^ components;
|
|
|
92 |
|
|
|
93 |
/// <summary>
|
|
|
94 |
/// Required designer variable.
|
|
|
95 |
/// </summary>
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
#pragma region Windows Form Designer generated code
|
|
|
99 |
/// <summary>
|
|
|
100 |
/// Required method for Designer support - do not modify
|
|
|
101 |
/// the contents of this method with the code editor.
|
|
|
102 |
/// </summary>
|
|
|
103 |
void InitializeComponent(void)
|
|
|
104 |
{
|
|
|
105 |
this->components = (gcnew System::ComponentModel::Container());
|
|
|
106 |
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(EditWares::typeid));
|
|
|
107 |
this->listView1 = (gcnew System::Windows::Forms::ListView());
|
|
|
108 |
this->columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
109 |
this->columnHeader3 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
110 |
this->columnHeader4 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
111 |
this->columnHeader5 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
112 |
this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
113 |
this->columnHeader6 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
114 |
this->columnHeader7 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
115 |
this->columnHeader8 = (gcnew System::Windows::Forms::ColumnHeader());
|
|
|
116 |
this->contextMenuStrip1 = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
|
|
|
117 |
this->editPriceToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
118 |
this->editNotoToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
119 |
this->toolStripMenuItem2 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
120 |
this->toolStripMenuItem3 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
121 |
this->toolStripMenuItem4 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
122 |
this->toolStripMenuItem5 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
123 |
this->toolStripMenuItem6 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
124 |
this->toolStripMenuItem7 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
125 |
this->toolStripMenuItem8 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
126 |
this->toolStripMenuItem9 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
127 |
this->toolStripMenuItem10 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
128 |
this->toolStripMenuItem11 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
129 |
this->toolStripMenuItem12 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
130 |
this->toolStripMenuItem13 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
131 |
this->toolStripMenuItem14 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
132 |
this->toolStripMenuItem15 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
133 |
this->toolStripMenuItem16 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
134 |
this->toolStripMenuItem17 = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
135 |
this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
|
|
|
136 |
this->resetToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
|
|
|
137 |
this->imageList1 = (gcnew System::Windows::Forms::ImageList(this->components));
|
|
|
138 |
this->button1 = (gcnew System::Windows::Forms::Button());
|
|
|
139 |
this->contextMenuStrip1->SuspendLayout();
|
|
|
140 |
this->SuspendLayout();
|
|
|
141 |
//
|
|
|
142 |
// listView1
|
|
|
143 |
//
|
|
|
144 |
this->listView1->AllowColumnReorder = true;
|
|
|
145 |
this->listView1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom)
|
|
|
146 |
| System::Windows::Forms::AnchorStyles::Left)
|
|
|
147 |
| System::Windows::Forms::AnchorStyles::Right));
|
|
|
148 |
this->listView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(8) {this->columnHeader1, this->columnHeader3,
|
|
|
149 |
this->columnHeader4, this->columnHeader5, this->columnHeader2, this->columnHeader6, this->columnHeader7, this->columnHeader8});
|
|
|
150 |
this->listView1->ContextMenuStrip = this->contextMenuStrip1;
|
|
|
151 |
this->listView1->FullRowSelect = true;
|
|
|
152 |
this->listView1->HideSelection = false;
|
|
|
153 |
this->listView1->LargeImageList = this->imageList1;
|
|
|
154 |
this->listView1->Location = System::Drawing::Point(12, 12);
|
|
|
155 |
this->listView1->MultiSelect = false;
|
|
|
156 |
this->listView1->Name = L"listView1";
|
|
|
157 |
this->listView1->Size = System::Drawing::Size(767, 394);
|
|
|
158 |
this->listView1->SmallImageList = this->imageList1;
|
|
|
159 |
this->listView1->TabIndex = 0;
|
|
|
160 |
this->listView1->UseCompatibleStateImageBehavior = false;
|
|
|
161 |
this->listView1->View = System::Windows::Forms::View::Details;
|
|
|
162 |
//
|
|
|
163 |
// columnHeader1
|
|
|
164 |
//
|
|
|
165 |
this->columnHeader1->Text = L"Ware";
|
|
|
166 |
//
|
|
|
167 |
// columnHeader3
|
|
|
168 |
//
|
|
|
169 |
this->columnHeader3->Text = L"Type";
|
|
|
170 |
//
|
|
|
171 |
// columnHeader4
|
|
|
172 |
//
|
|
|
173 |
this->columnHeader4->Text = L"Price";
|
|
|
174 |
this->columnHeader4->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
|
|
|
175 |
//
|
|
|
176 |
// columnHeader5
|
|
|
177 |
//
|
|
|
178 |
this->columnHeader5->Text = L"Notority";
|
|
|
179 |
this->columnHeader5->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
|
|
|
180 |
//
|
|
|
181 |
// columnHeader2
|
|
|
182 |
//
|
|
|
183 |
this->columnHeader2->Text = L"Description";
|
|
|
184 |
//
|
|
|
185 |
// columnHeader6
|
|
|
186 |
//
|
|
|
187 |
this->columnHeader6->Text = L"ID";
|
|
|
188 |
//
|
|
|
189 |
// columnHeader7
|
|
|
190 |
//
|
|
|
191 |
this->columnHeader7->Width = 0;
|
|
|
192 |
//
|
|
|
193 |
// columnHeader8
|
|
|
194 |
//
|
|
|
195 |
this->columnHeader8->Width = 0;
|
|
|
196 |
//
|
|
|
197 |
// contextMenuStrip1
|
|
|
198 |
//
|
|
|
199 |
this->contextMenuStrip1->ImageScalingSize = System::Drawing::Size(32, 32);
|
|
|
200 |
this->contextMenuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(4) {this->editPriceToolStripMenuItem,
|
|
|
201 |
this->editNotoToolStripMenuItem, this->toolStripSeparator1, this->resetToolStripMenuItem});
|
|
|
202 |
this->contextMenuStrip1->Name = L"contextMenuStrip1";
|
|
|
203 |
this->contextMenuStrip1->Size = System::Drawing::Size(174, 146);
|
|
|
204 |
this->contextMenuStrip1->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &EditWares::contextMenuStrip1_Opening);
|
|
|
205 |
//
|
|
|
206 |
// editPriceToolStripMenuItem
|
|
|
207 |
//
|
|
|
208 |
this->editPriceToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"editPriceToolStripMenuItem.Image")));
|
|
|
209 |
this->editPriceToolStripMenuItem->Name = L"editPriceToolStripMenuItem";
|
|
|
210 |
this->editPriceToolStripMenuItem->Size = System::Drawing::Size(173, 38);
|
|
|
211 |
this->editPriceToolStripMenuItem->Text = L"Edit Price";
|
|
|
212 |
this->editPriceToolStripMenuItem->Click += gcnew System::EventHandler(this, &EditWares::editPriceToolStripMenuItem_Click);
|
|
|
213 |
//
|
|
|
214 |
// editNotoToolStripMenuItem
|
|
|
215 |
//
|
|
|
216 |
this->editNotoToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(16) {this->toolStripMenuItem2,
|
|
|
217 |
this->toolStripMenuItem3, this->toolStripMenuItem4, this->toolStripMenuItem5, this->toolStripMenuItem6, this->toolStripMenuItem7,
|
|
|
218 |
this->toolStripMenuItem8, this->toolStripMenuItem9, this->toolStripMenuItem10, this->toolStripMenuItem11, this->toolStripMenuItem12,
|
|
|
219 |
this->toolStripMenuItem13, this->toolStripMenuItem14, this->toolStripMenuItem15, this->toolStripMenuItem16, this->toolStripMenuItem17});
|
|
|
220 |
this->editNotoToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"editNotoToolStripMenuItem.Image")));
|
|
|
221 |
this->editNotoToolStripMenuItem->Name = L"editNotoToolStripMenuItem";
|
|
|
222 |
this->editNotoToolStripMenuItem->Size = System::Drawing::Size(173, 38);
|
|
|
223 |
this->editNotoToolStripMenuItem->Text = L"Edit Notoriety";
|
|
|
224 |
//
|
|
|
225 |
// toolStripMenuItem2
|
|
|
226 |
//
|
|
|
227 |
this->toolStripMenuItem2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem2.Image")));
|
|
|
228 |
this->toolStripMenuItem2->Name = L"toolStripMenuItem2";
|
|
|
229 |
this->toolStripMenuItem2->Size = System::Drawing::Size(169, 38);
|
|
|
230 |
this->toolStripMenuItem2->Text = L"+10 (1,000,000)";
|
|
|
231 |
this->toolStripMenuItem2->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem2_Click);
|
|
|
232 |
//
|
|
|
233 |
// toolStripMenuItem3
|
|
|
234 |
//
|
|
|
235 |
this->toolStripMenuItem3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem3.Image")));
|
|
|
236 |
this->toolStripMenuItem3->Name = L"toolStripMenuItem3";
|
|
|
237 |
this->toolStripMenuItem3->Size = System::Drawing::Size(169, 38);
|
|
|
238 |
this->toolStripMenuItem3->Text = L"+9 (100,000)";
|
|
|
239 |
this->toolStripMenuItem3->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem3_Click);
|
|
|
240 |
//
|
|
|
241 |
// toolStripMenuItem4
|
|
|
242 |
//
|
|
|
243 |
this->toolStripMenuItem4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem4.Image")));
|
|
|
244 |
this->toolStripMenuItem4->Name = L"toolStripMenuItem4";
|
|
|
245 |
this->toolStripMenuItem4->Size = System::Drawing::Size(169, 38);
|
|
|
246 |
this->toolStripMenuItem4->Text = L"+8 (33,333)";
|
|
|
247 |
this->toolStripMenuItem4->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem4_Click);
|
|
|
248 |
//
|
|
|
249 |
// toolStripMenuItem5
|
|
|
250 |
//
|
|
|
251 |
this->toolStripMenuItem5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem5.Image")));
|
|
|
252 |
this->toolStripMenuItem5->Name = L"toolStripMenuItem5";
|
|
|
253 |
this->toolStripMenuItem5->Size = System::Drawing::Size(169, 38);
|
|
|
254 |
this->toolStripMenuItem5->Text = L"+7 (10,000)";
|
|
|
255 |
this->toolStripMenuItem5->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem5_Click);
|
|
|
256 |
//
|
|
|
257 |
// toolStripMenuItem6
|
|
|
258 |
//
|
|
|
259 |
this->toolStripMenuItem6->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem6.Image")));
|
|
|
260 |
this->toolStripMenuItem6->Name = L"toolStripMenuItem6";
|
|
|
261 |
this->toolStripMenuItem6->Size = System::Drawing::Size(169, 38);
|
|
|
262 |
this->toolStripMenuItem6->Text = L"+6 (3,333)";
|
|
|
263 |
this->toolStripMenuItem6->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem6_Click);
|
|
|
264 |
//
|
|
|
265 |
// toolStripMenuItem7
|
|
|
266 |
//
|
|
|
267 |
this->toolStripMenuItem7->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem7.Image")));
|
|
|
268 |
this->toolStripMenuItem7->Name = L"toolStripMenuItem7";
|
|
|
269 |
this->toolStripMenuItem7->Size = System::Drawing::Size(169, 38);
|
|
|
270 |
this->toolStripMenuItem7->Text = L"+5 (1,000)";
|
|
|
271 |
this->toolStripMenuItem7->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem7_Click);
|
|
|
272 |
//
|
|
|
273 |
// toolStripMenuItem8
|
|
|
274 |
//
|
|
|
275 |
this->toolStripMenuItem8->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem8.Image")));
|
|
|
276 |
this->toolStripMenuItem8->Name = L"toolStripMenuItem8";
|
|
|
277 |
this->toolStripMenuItem8->Size = System::Drawing::Size(169, 38);
|
|
|
278 |
this->toolStripMenuItem8->Text = L"+4 (333)";
|
|
|
279 |
this->toolStripMenuItem8->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem8_Click);
|
|
|
280 |
//
|
|
|
281 |
// toolStripMenuItem9
|
|
|
282 |
//
|
|
|
283 |
this->toolStripMenuItem9->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem9.Image")));
|
|
|
284 |
this->toolStripMenuItem9->Name = L"toolStripMenuItem9";
|
|
|
285 |
this->toolStripMenuItem9->Size = System::Drawing::Size(169, 38);
|
|
|
286 |
this->toolStripMenuItem9->Text = L"+3 (100)";
|
|
|
287 |
this->toolStripMenuItem9->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem9_Click);
|
|
|
288 |
//
|
|
|
289 |
// toolStripMenuItem10
|
|
|
290 |
//
|
|
|
291 |
this->toolStripMenuItem10->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem10.Image")));
|
|
|
292 |
this->toolStripMenuItem10->Name = L"toolStripMenuItem10";
|
|
|
293 |
this->toolStripMenuItem10->Size = System::Drawing::Size(169, 38);
|
|
|
294 |
this->toolStripMenuItem10->Text = L"+2 (33)";
|
|
|
295 |
this->toolStripMenuItem10->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem10_Click);
|
|
|
296 |
//
|
|
|
297 |
// toolStripMenuItem11
|
|
|
298 |
//
|
|
|
299 |
this->toolStripMenuItem11->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem11.Image")));
|
|
|
300 |
this->toolStripMenuItem11->Name = L"toolStripMenuItem11";
|
|
|
301 |
this->toolStripMenuItem11->Size = System::Drawing::Size(169, 38);
|
|
|
302 |
this->toolStripMenuItem11->Text = L"+ 1 (10)";
|
|
|
303 |
this->toolStripMenuItem11->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem11_Click);
|
|
|
304 |
//
|
|
|
305 |
// toolStripMenuItem12
|
|
|
306 |
//
|
|
|
307 |
this->toolStripMenuItem12->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem12.Image")));
|
|
|
308 |
this->toolStripMenuItem12->Name = L"toolStripMenuItem12";
|
|
|
309 |
this->toolStripMenuItem12->Size = System::Drawing::Size(169, 38);
|
|
|
310 |
this->toolStripMenuItem12->Text = L"0 (-10)";
|
|
|
311 |
this->toolStripMenuItem12->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem12_Click);
|
|
|
312 |
//
|
|
|
313 |
// toolStripMenuItem13
|
|
|
314 |
//
|
|
|
315 |
this->toolStripMenuItem13->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem13.Image")));
|
|
|
316 |
this->toolStripMenuItem13->Name = L"toolStripMenuItem13";
|
|
|
317 |
this->toolStripMenuItem13->Size = System::Drawing::Size(169, 38);
|
|
|
318 |
this->toolStripMenuItem13->Text = L"-1 (-100)";
|
|
|
319 |
this->toolStripMenuItem13->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem13_Click);
|
|
|
320 |
//
|
|
|
321 |
// toolStripMenuItem14
|
|
|
322 |
//
|
|
|
323 |
this->toolStripMenuItem14->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem14.Image")));
|
|
|
324 |
this->toolStripMenuItem14->Name = L"toolStripMenuItem14";
|
|
|
325 |
this->toolStripMenuItem14->Size = System::Drawing::Size(169, 38);
|
|
|
326 |
this->toolStripMenuItem14->Text = L"-2 (-1,000)";
|
|
|
327 |
this->toolStripMenuItem14->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem14_Click);
|
|
|
328 |
//
|
|
|
329 |
// toolStripMenuItem15
|
|
|
330 |
//
|
|
|
331 |
this->toolStripMenuItem15->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem15.Image")));
|
|
|
332 |
this->toolStripMenuItem15->Name = L"toolStripMenuItem15";
|
|
|
333 |
this->toolStripMenuItem15->Size = System::Drawing::Size(169, 38);
|
|
|
334 |
this->toolStripMenuItem15->Text = L"-3 (-10,000)";
|
|
|
335 |
this->toolStripMenuItem15->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem15_Click);
|
|
|
336 |
//
|
|
|
337 |
// toolStripMenuItem16
|
|
|
338 |
//
|
|
|
339 |
this->toolStripMenuItem16->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem16.Image")));
|
|
|
340 |
this->toolStripMenuItem16->Name = L"toolStripMenuItem16";
|
|
|
341 |
this->toolStripMenuItem16->Size = System::Drawing::Size(169, 38);
|
|
|
342 |
this->toolStripMenuItem16->Text = L"-4 (-100,000)";
|
|
|
343 |
this->toolStripMenuItem16->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem16_Click);
|
|
|
344 |
//
|
|
|
345 |
// toolStripMenuItem17
|
|
|
346 |
//
|
|
|
347 |
this->toolStripMenuItem17->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"toolStripMenuItem17.Image")));
|
|
|
348 |
this->toolStripMenuItem17->Name = L"toolStripMenuItem17";
|
|
|
349 |
this->toolStripMenuItem17->Size = System::Drawing::Size(169, 38);
|
|
|
350 |
this->toolStripMenuItem17->Text = L"-5 (-1,000,000)";
|
|
|
351 |
this->toolStripMenuItem17->Click += gcnew System::EventHandler(this, &EditWares::toolStripMenuItem17_Click);
|
|
|
352 |
//
|
|
|
353 |
// toolStripSeparator1
|
|
|
354 |
//
|
|
|
355 |
this->toolStripSeparator1->Name = L"toolStripSeparator1";
|
|
|
356 |
this->toolStripSeparator1->Size = System::Drawing::Size(170, 6);
|
|
|
357 |
//
|
|
|
358 |
// resetToolStripMenuItem
|
|
|
359 |
//
|
|
|
360 |
this->resetToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"resetToolStripMenuItem.Image")));
|
|
|
361 |
this->resetToolStripMenuItem->Name = L"resetToolStripMenuItem";
|
|
|
362 |
this->resetToolStripMenuItem->Size = System::Drawing::Size(173, 38);
|
|
|
363 |
this->resetToolStripMenuItem->Text = L"Reset to Default";
|
|
|
364 |
this->resetToolStripMenuItem->Click += gcnew System::EventHandler(this, &EditWares::resetToolStripMenuItem_Click);
|
|
|
365 |
//
|
|
|
366 |
// imageList1
|
|
|
367 |
//
|
|
|
368 |
this->imageList1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^ >(resources->GetObject(L"imageList1.ImageStream")));
|
|
|
369 |
this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
|
|
|
370 |
this->imageList1->Images->SetKeyName(0, L"label1.Image.png");
|
|
|
371 |
//
|
|
|
372 |
// button1
|
|
|
373 |
//
|
|
|
374 |
this->button1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
|
|
|
375 |
this->button1->DialogResult = System::Windows::Forms::DialogResult::OK;
|
|
|
376 |
this->button1->Location = System::Drawing::Point(689, 413);
|
|
|
377 |
this->button1->Name = L"button1";
|
|
|
378 |
this->button1->Size = System::Drawing::Size(90, 33);
|
|
|
379 |
this->button1->TabIndex = 1;
|
|
|
380 |
this->button1->Text = L"Close";
|
|
|
381 |
this->button1->UseVisualStyleBackColor = true;
|
|
|
382 |
this->button1->Click += gcnew System::EventHandler(this, &EditWares::button1_Click);
|
|
|
383 |
//
|
|
|
384 |
// EditWares
|
|
|
385 |
//
|
|
|
386 |
this->ClientSize = System::Drawing::Size(791, 458);
|
|
|
387 |
this->Controls->Add(this->button1);
|
|
|
388 |
this->Controls->Add(this->listView1);
|
|
|
389 |
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
|
|
|
390 |
this->Name = L"EditWares";
|
|
|
391 |
this->Text = L"Used Wares";
|
|
|
392 |
this->contextMenuStrip1->ResumeLayout(false);
|
|
|
393 |
this->ResumeLayout(false);
|
|
|
394 |
|
|
|
395 |
}
|
|
|
396 |
#pragma endregion
|
|
|
397 |
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
398 |
}
|
|
|
399 |
private: System::Void editPriceToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
400 |
this->editPrice();
|
|
|
401 |
}
|
|
|
402 |
private: System::Void contextMenuStrip1_Opening(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) {
|
|
|
403 |
if ( !this->listView1->SelectedItems->Count ) e->Cancel = true;
|
|
|
404 |
}
|
|
|
405 |
private: System::Void resetToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
406 |
this->reset();
|
|
|
407 |
}
|
|
|
408 |
private: System::Void toolStripMenuItem2_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
409 |
this->editNoto(1000000);
|
|
|
410 |
}
|
|
|
411 |
private: System::Void toolStripMenuItem17_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
412 |
this->editNoto(-1000000);
|
|
|
413 |
}
|
|
|
414 |
private: System::Void toolStripMenuItem16_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
415 |
this->editNoto(-100000);
|
|
|
416 |
}
|
|
|
417 |
private: System::Void toolStripMenuItem3_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
418 |
this->editNoto(100000);
|
|
|
419 |
}
|
|
|
420 |
private: System::Void toolStripMenuItem4_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
421 |
this->editNoto(33333);
|
|
|
422 |
}
|
|
|
423 |
private: System::Void toolStripMenuItem5_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
424 |
this->editNoto(10000);
|
|
|
425 |
}
|
|
|
426 |
private: System::Void toolStripMenuItem6_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
427 |
this->editNoto(3333);
|
|
|
428 |
}
|
|
|
429 |
private: System::Void toolStripMenuItem7_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
430 |
this->editNoto(1000);
|
|
|
431 |
}
|
|
|
432 |
private: System::Void toolStripMenuItem8_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
433 |
this->editNoto(333);
|
|
|
434 |
}
|
|
|
435 |
private: System::Void toolStripMenuItem9_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
436 |
this->editNoto(100);
|
|
|
437 |
}
|
|
|
438 |
private: System::Void toolStripMenuItem10_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
439 |
this->editNoto(33);
|
|
|
440 |
}
|
|
|
441 |
private: System::Void toolStripMenuItem11_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
442 |
this->editNoto(10);
|
|
|
443 |
}
|
|
|
444 |
private: System::Void toolStripMenuItem12_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
445 |
this->editNoto(-10);
|
|
|
446 |
}
|
|
|
447 |
private: System::Void toolStripMenuItem13_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
448 |
this->editNoto(-100);
|
|
|
449 |
}
|
|
|
450 |
private: System::Void toolStripMenuItem14_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
451 |
this->editNoto(-1000);
|
|
|
452 |
}
|
|
|
453 |
private: System::Void toolStripMenuItem15_Click(System::Object^ sender, System::EventArgs^ e) {
|
|
|
454 |
this->editNoto(-10000);
|
|
|
455 |
}
|
|
|
456 |
};
|
|
|
457 |
}
|