-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangingForm.h
132 lines (110 loc) · 3.67 KB
/
ChangingForm.h
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#pragma once
#include <msclr/marshal_cppstd.h>
#include "DataManipulator.h"
#include "UIInstruments.h"
#include "AppSettings.h"
namespace Notes {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Ñâîäêà äëÿ ChangingForm
/// </summary>
public ref class ChangingForm : public System::Windows::Forms::Form
{
public:
int selectedIndex;
ChangingForm(void)
{
InitializeComponent();
//
//TODO: äîáàâüòå êîä êîíñòðóêòîðà
//
}
protected:
/// <summary>
/// Îñâîáîäèòü âñå èñïîëüçóåìûå ðåñóðñû.
/// </summary>
~ChangingForm()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ colorpickerBtn;
private: System::Windows::Forms::Label^ labelColor;
private: System::Windows::Forms::RichTextBox^ bodyTextBox;
private: System::Windows::Forms::Label^ labelBody;
private: System::Windows::Forms::Label^ labelTopic;
private: System::Windows::Forms::Label^ labelHeader;
private: System::Windows::Forms::Button^ confirmationBtn;
private: System::Windows::Forms::Button^ cancelBnt;
private: System::Windows::Forms::TextBox^ topicTextBox;
private: System::Windows::Forms::TextBox^ headerTextBox;
private: System::Windows::Forms::ColorDialog^ colorDialog;
private:
/// <summary>
/// Îáÿçàòåëüíàÿ ïåðåìåííàÿ êîíñòðóêòîðà.
/// </summary>
System::ComponentModel::Container^ components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Òðåáóåìûé ìåòîä äëÿ ïîääåðæêè êîíñòðóêòîðà — íå èçìåíÿéòå
/// ñîäåðæèìîå ýòîãî ìåòîäà ñ ïîìîùüþ ðåäàêòîðà êîäà.
/// </summary>
void InitializeComponent(void);
#pragma endregion
/*
Function called when loading ChangingForm.
*/
private: System::Void ChangingForm_Load(System::Object^ sender, System::EventArgs^ e);
/*
Function called when colorpickerBtn button is pressed.
*/
private: System::Void colorpickerBtn_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function called when cancelBnt button is pressed.
*/
private: System::Void cancelBnt_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function called when entering the headerTextBox text field.
*/
private: System::Void headerTextBox_Enter(System::Object^ sender, System::EventArgs^ e);
/*
Function called when leaving the headerTextBox text field.
*/
private: System::Void headerTextBox_Leave(System::Object^ sender, System::EventArgs^ e);
/*
Function called when entering the topicTextBox text field.
*/
private: System::Void topicTextBox_Enter(System::Object^ sender, System::EventArgs^ e);
/*
Function called when leaving the topicTextBox text field.
*/
private: System::Void topicTextBox_Leave(System::Object^ sender, System::EventArgs^ e);
/*
Function called when entering the bodyTextBox text field.
*/
private: System::Void bodyTextBox_Enter(System::Object^ sender, System::EventArgs^ e);
/*
Function called when leaving the bodyTextBox text field.
*/
private: System::Void bodyTextBox_Leave(System::Object^ sender, System::EventArgs^ e);
/*
Function called when confirmationBtn button is pressed.
*/
private: System::Void confirmationBtn_Click(System::Object^ sender, System::EventArgs^ e);
/*
Function called when the text in the headerTextBox text field changes.
*/
private: System::Void headerTextBox_TextChanged(System::Object^ sender, System::EventArgs^ e);
/*
Function called when the text in the topicTextBox text field changes.
*/
private: System::Void topicTextBox_TextChanged(System::Object^ sender, System::EventArgs^ e);
};
}