📄 eurolimitsdialog.h
字号:
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
namespace Ex22_01 {
/// <summary>
/// Summary for EuroLimitsDialog
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class EuroLimitsDialog : public System::Windows::Forms::Form
{
public:
EuroLimitsDialog(void)
:lowerValuesLimit(1)
,upperValuesLimit(50)
,lowerStarsLimit(1)
,upperStarsLimit(9)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~EuroLimitsDialog()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ euroOK;
protected:
private: System::Windows::Forms::Button^ euroCancel;
private: System::Windows::Forms::GroupBox^ groupBox1;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::NumericUpDown^ upperValuesLimits;
private: System::Windows::Forms::NumericUpDown^ lowerValuesLimits;
private: System::Windows::Forms::GroupBox^ groupBox2;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::ComboBox^ upperStarsLimits;
private: System::Windows::Forms::ComboBox^ lowerStarsLimits;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::Label^ label3;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->euroOK = (gcnew System::Windows::Forms::Button());
this->euroCancel = (gcnew System::Windows::Forms::Button());
this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
this->label2 = (gcnew System::Windows::Forms::Label());
this->label1 = (gcnew System::Windows::Forms::Label());
this->upperValuesLimits = (gcnew System::Windows::Forms::NumericUpDown());
this->lowerValuesLimits = (gcnew System::Windows::Forms::NumericUpDown());
this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
this->upperStarsLimits = (gcnew System::Windows::Forms::ComboBox());
this->lowerStarsLimits = (gcnew System::Windows::Forms::ComboBox());
this->label4 = (gcnew System::Windows::Forms::Label());
this->label3 = (gcnew System::Windows::Forms::Label());
this->groupBox1->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->upperValuesLimits))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->lowerValuesLimits))->BeginInit();
this->groupBox2->SuspendLayout();
this->SuspendLayout();
//
// euroOK
//
this->euroOK->DialogResult = System::Windows::Forms::DialogResult::OK;
this->euroOK->Location = System::Drawing::Point(42, 192);
this->euroOK->Name = L"euroOK";
this->euroOK->Size = System::Drawing::Size(75, 23);
this->euroOK->TabIndex = 0;
this->euroOK->Text = L"OK";
this->euroOK->UseVisualStyleBackColor = true;
this->euroOK->Click += gcnew System::EventHandler(this, &EuroLimitsDialog::euroOK_Click);
//
// euroCancel
//
this->euroCancel->DialogResult = System::Windows::Forms::DialogResult::Cancel;
this->euroCancel->Location = System::Drawing::Point(176, 192);
this->euroCancel->Name = L"euroCancel";
this->euroCancel->Size = System::Drawing::Size(75, 23);
this->euroCancel->TabIndex = 1;
this->euroCancel->Text = L"Cancel";
this->euroCancel->UseVisualStyleBackColor = true;
//
// groupBox1
//
this->groupBox1->Controls->Add(this->label2);
this->groupBox1->Controls->Add(this->label1);
this->groupBox1->Controls->Add(this->upperValuesLimits);
this->groupBox1->Controls->Add(this->lowerValuesLimits);
this->groupBox1->Location = System::Drawing::Point(12, 12);
this->groupBox1->Name = L"groupBox1";
this->groupBox1->Size = System::Drawing::Size(268, 64);
this->groupBox1->TabIndex = 2;
this->groupBox1->TabStop = false;
this->groupBox1->Text = L"Set Values Limits";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label2->Location = System::Drawing::Point(139, 26);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(67, 15);
this->label2->TabIndex = 1;
this->label2->Text = L"Upper limit";
//
// label1
//
this->label1->AutoSize = true;
this->label1->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label1->Location = System::Drawing::Point(6, 26);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(70, 15);
this->label1->TabIndex = 1;
this->label1->Text = L"Lower limit:";
//
// upperValuesLimits
//
this->upperValuesLimits->Location = System::Drawing::Point(212, 23);
this->upperValuesLimits->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {49, 0, 0, 0});
this->upperValuesLimits->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 0});
this->upperValuesLimits->Name = L"upperValuesLimits";
this->upperValuesLimits->ReadOnly = true;
this->upperValuesLimits->Size = System::Drawing::Size(45, 20);
this->upperValuesLimits->TabIndex = 0;
this->upperValuesLimits->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {49, 0, 0, 0});
//
// lowerValuesLimits
//
this->lowerValuesLimits->Location = System::Drawing::Point(82, 23);
this->lowerValuesLimits->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {45, 0, 0, 0});
this->lowerValuesLimits->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
this->lowerValuesLimits->Name = L"lowerValuesLimits";
this->lowerValuesLimits->ReadOnly = true;
this->lowerValuesLimits->Size = System::Drawing::Size(45, 20);
this->lowerValuesLimits->TabIndex = 0;
this->lowerValuesLimits->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
//
// groupBox2
//
this->groupBox2->Controls->Add(this->upperStarsLimits);
this->groupBox2->Controls->Add(this->lowerStarsLimits);
this->groupBox2->Controls->Add(this->label4);
this->groupBox2->Controls->Add(this->label3);
this->groupBox2->Location = System::Drawing::Point(12, 102);
this->groupBox2->Name = L"groupBox2";
this->groupBox2->Size = System::Drawing::Size(268, 64);
this->groupBox2->TabIndex = 3;
this->groupBox2->TabStop = false;
this->groupBox2->Text = L"Set Stars Limits";
//
// upperStarsLimits
//
this->upperStarsLimits->FormattingEnabled = true;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -