Subversion Repositories spk

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
#pragma once
2
 
3
using namespace System;
4
using namespace System::ComponentModel;
5
using namespace System::Collections;
6
using namespace System::Windows::Forms;
7
using namespace System::Data;
8
using namespace System::Drawing;
9
 
10
 
11
namespace SpkExplorer {
12
 
13
	/// <summary>
14
	/// Summary for FileExists
15
	///
16
	/// WARNING: If you change the name of this class, you will need to change the
17
	///          'Resource File Name' property for the managed resource compiler tool
18
	///          associated with all .resx files this class depends on.  Otherwise,
19
	///          the designers will not be able to interact properly with localized
20
	///          resources associated with this form.
21
	/// </summary>
22
	public ref class FileExists : public System::Windows::Forms::Form
23
	{
24
	public:
25
		FileExists(System::String ^file)
26
		{
27
			InitializeComponent();
28
 
29
			this->LabFile->Text = file;
30
		}
31
 
32
	protected:
33
		/// <summary>
34
		/// Clean up any resources being used.
35
		/// </summary>
36
		~FileExists()
37
		{
38
			if (components)
39
			{
40
				delete components;
41
			}
42
		}
43
	private: System::Windows::Forms::FlowLayoutPanel^  flowLayoutPanel1;
44
	protected: 
45
	private: System::Windows::Forms::Button^  button1;
46
	private: System::Windows::Forms::Button^  button2;
47
	private: System::Windows::Forms::Button^  button3;
48
	private: System::Windows::Forms::Button^  button4;
49
	private: System::Windows::Forms::Button^  button5;
50
	private: System::Windows::Forms::Label^  LabFile;
51
	private: System::Windows::Forms::Label^  label1;
52
 
53
	private:
54
		/// <summary>
55
		/// Required designer variable.
56
		/// </summary>
57
		System::ComponentModel::Container ^components;
58
 
59
#pragma region Windows Form Designer generated code
60
		/// <summary>
61
		/// Required method for Designer support - do not modify
62
		/// the contents of this method with the code editor.
63
		/// </summary>
64
		void InitializeComponent(void)
65
		{
66
			this->flowLayoutPanel1 = (gcnew System::Windows::Forms::FlowLayoutPanel());
67
			this->button1 = (gcnew System::Windows::Forms::Button());
68
			this->button2 = (gcnew System::Windows::Forms::Button());
69
			this->button3 = (gcnew System::Windows::Forms::Button());
70
			this->button4 = (gcnew System::Windows::Forms::Button());
71
			this->button5 = (gcnew System::Windows::Forms::Button());
72
			this->LabFile = (gcnew System::Windows::Forms::Label());
73
			this->label1 = (gcnew System::Windows::Forms::Label());
74
			this->flowLayoutPanel1->SuspendLayout();
75
			this->SuspendLayout();
76
			// 
77
			// flowLayoutPanel1
78
			// 
79
			this->flowLayoutPanel1->AutoSize = true;
80
			this->flowLayoutPanel1->AutoSizeMode = System::Windows::Forms::AutoSizeMode::GrowAndShrink;
81
			this->flowLayoutPanel1->Controls->Add(this->button1);
82
			this->flowLayoutPanel1->Controls->Add(this->button2);
83
			this->flowLayoutPanel1->Controls->Add(this->button3);
84
			this->flowLayoutPanel1->Controls->Add(this->button4);
85
			this->flowLayoutPanel1->Controls->Add(this->button5);
86
			this->flowLayoutPanel1->Dock = System::Windows::Forms::DockStyle::Bottom;
87
			this->flowLayoutPanel1->Location = System::Drawing::Point(0, 71);
88
			this->flowLayoutPanel1->Name = L"flowLayoutPanel1";
89
			this->flowLayoutPanel1->RightToLeft = System::Windows::Forms::RightToLeft::No;
90
			this->flowLayoutPanel1->Size = System::Drawing::Size(549, 29);
91
			this->flowLayoutPanel1->TabIndex = 0;
92
			// 
93
			// button1
94
			// 
95
			this->button1->DialogResult = System::Windows::Forms::DialogResult::Yes;
96
			this->button1->Location = System::Drawing::Point(3, 3);
97
			this->button1->Name = L"button1";
98
			this->button1->Size = System::Drawing::Size(105, 23);
99
			this->button1->TabIndex = 0;
100
			this->button1->Text = L"Yes";
101
			this->button1->UseVisualStyleBackColor = true;
102
			this->button1->Click += gcnew System::EventHandler(this, &FileExists::button1_Click);
103
			// 
104
			// button2
105
			// 
106
			this->button2->DialogResult = System::Windows::Forms::DialogResult::OK;
107
			this->button2->Location = System::Drawing::Point(114, 3);
108
			this->button2->Name = L"button2";
109
			this->button2->Size = System::Drawing::Size(111, 23);
110
			this->button2->TabIndex = 1;
111
			this->button2->Text = L"Yes to All";
112
			this->button2->UseVisualStyleBackColor = true;
113
			this->button2->Click += gcnew System::EventHandler(this, &FileExists::button2_Click);
114
			// 
115
			// button3
116
			// 
117
			this->button3->DialogResult = System::Windows::Forms::DialogResult::No;
118
			this->button3->Location = System::Drawing::Point(231, 3);
119
			this->button3->Name = L"button3";
120
			this->button3->Size = System::Drawing::Size(111, 23);
121
			this->button3->TabIndex = 2;
122
			this->button3->Text = L"No";
123
			this->button3->UseVisualStyleBackColor = true;
124
			this->button3->Click += gcnew System::EventHandler(this, &FileExists::button3_Click);
125
			// 
126
			// button4
127
			// 
128
			this->button4->DialogResult = System::Windows::Forms::DialogResult::Ignore;
129
			this->button4->Location = System::Drawing::Point(348, 3);
130
			this->button4->Name = L"button4";
131
			this->button4->Size = System::Drawing::Size(115, 23);
132
			this->button4->TabIndex = 3;
133
			this->button4->Text = L"No To All";
134
			this->button4->UseVisualStyleBackColor = true;
135
			this->button4->Click += gcnew System::EventHandler(this, &FileExists::button4_Click);
136
			// 
137
			// button5
138
			// 
139
			this->button5->DialogResult = System::Windows::Forms::DialogResult::Cancel;
140
			this->button5->Location = System::Drawing::Point(469, 3);
141
			this->button5->Name = L"button5";
142
			this->button5->Size = System::Drawing::Size(75, 23);
143
			this->button5->TabIndex = 4;
144
			this->button5->Text = L"Cancel";
145
			this->button5->UseVisualStyleBackColor = true;
146
			this->button5->Click += gcnew System::EventHandler(this, &FileExists::button5_Click);
147
			// 
148
			// LabFile
149
			// 
150
			this->LabFile->Dock = System::Windows::Forms::DockStyle::Fill;
151
			this->LabFile->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
152
				static_cast<System::Byte>(0)));
153
			this->LabFile->Location = System::Drawing::Point(0, 0);
154
			this->LabFile->Name = L"LabFile";
155
			this->LabFile->Size = System::Drawing::Size(549, 41);
156
			this->LabFile->TabIndex = 1;
157
			this->LabFile->Text = L"File Exists:";
158
			this->LabFile->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
159
			// 
160
			// label1
161
			// 
162
			this->label1->Dock = System::Windows::Forms::DockStyle::Bottom;
163
			this->label1->Location = System::Drawing::Point(0, 41);
164
			this->label1->Name = L"label1";
165
			this->label1->Size = System::Drawing::Size(549, 30);
166
			this->label1->TabIndex = 2;
167
			this->label1->Text = L"Would you like to overright\?";
168
			this->label1->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
169
			// 
170
			// FileExists
171
			// 
172
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
173
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
174
			this->ClientSize = System::Drawing::Size(549, 100);
175
			this->ControlBox = false;
176
			this->Controls->Add(this->LabFile);
177
			this->Controls->Add(this->label1);
178
			this->Controls->Add(this->flowLayoutPanel1);
179
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedDialog;
180
			this->Name = L"FileExists";
181
			this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
182
			this->Text = L"File Already Exists";
183
			this->flowLayoutPanel1->ResumeLayout(false);
184
			this->ResumeLayout(false);
185
			this->PerformLayout();
186
		}
187
#pragma endregion
188
	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
189
				 this->Close();
190
			 }
191
private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
192
				 this->Close();
193
		 }
194
private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
195
				 this->Close();
196
		 }
197
private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
198
				 this->Close();
199
		 }
200
private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
201
				 this->Close();
202
		 }
203
};
204
}