-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeletionConfirmationForm.cpp
76 lines (72 loc) · 3.52 KB
/
DeletionConfirmationForm.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "DeletionConfirmationForm.h"
namespace Notes {
void DeletionConfirmationForm::InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(DeletionConfirmationForm::typeid));
this->cancelBtn = (gcnew System::Windows::Forms::Button());
this->confirmBtn = (gcnew System::Windows::Forms::Button());
this->labelInfo = (gcnew System::Windows::Forms::Label());
this->SuspendLayout();
//
// cancelBtn
//
this->cancelBtn->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->cancelBtn->Location = System::Drawing::Point(12, 175);
this->cancelBtn->Name = L"cancelBtn";
this->cancelBtn->Size = System::Drawing::Size(150, 57);
this->cancelBtn->TabIndex = 1;
this->cancelBtn->Text = L"Îòìåíà";
this->cancelBtn->UseVisualStyleBackColor = true;
this->cancelBtn->Click += gcnew System::EventHandler(this, &DeletionConfirmationForm::cancelBtn_Click);
//
// confirmBtn
//
this->confirmBtn->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->confirmBtn->Location = System::Drawing::Point(316, 175);
this->confirmBtn->Name = L"confirmBtn";
this->confirmBtn->Size = System::Drawing::Size(150, 57);
this->confirmBtn->TabIndex = 2;
this->confirmBtn->Text = L"Óäàëèòü";
this->confirmBtn->UseVisualStyleBackColor = true;
this->confirmBtn->Click += gcnew System::EventHandler(this, &DeletionConfirmationForm::confirmBtn_Click);
//
// labelInfo
//
this->labelInfo->AutoSize = true;
this->labelInfo->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(204)));
this->labelInfo->Location = System::Drawing::Point(85, 67);
this->labelInfo->Name = L"labelInfo";
this->labelInfo->Size = System::Drawing::Size(307, 58);
this->labelInfo->TabIndex = 3;
this->labelInfo->Text = L"Âû óâåðåíû, ÷òî\r\n õîòèòå óäàëèòü çàìåòêó\?";
this->labelInfo->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
//
// DeletionConfirmationForm
//
this->AutoScaleDimensions = System::Drawing::SizeF(9, 20);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(478, 244);
this->Controls->Add(this->labelInfo);
this->Controls->Add(this->confirmBtn);
this->Controls->Add(this->cancelBtn);
this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
this->MaximizeBox = false;
this->MaximumSize = System::Drawing::Size(500, 300);
this->MinimumSize = System::Drawing::Size(500, 300);
this->Name = L"DeletionConfirmationForm";
this->Text = L"Ïîäòâåðæäåíèå";
this->Load += gcnew System::EventHandler(this, &DeletionConfirmationForm::DeletionConfirmationForm_Load);
this->ResumeLayout(false);
this->PerformLayout();
}
System::Void DeletionConfirmationForm::DeletionConfirmationForm_Load(System::Object^ sender, System::EventArgs^ e) {}
System::Void DeletionConfirmationForm::cancelBtn_Click(System::Object^ sender, System::EventArgs^ e) {
this->DialogResult = Windows::Forms::DialogResult::No;
}
System::Void DeletionConfirmationForm::confirmBtn_Click(System::Object^ sender, System::EventArgs^ e) {
this->DialogResult = Windows::Forms::DialogResult::Yes;
}
}