📄 dormform.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 办公事务管理系统 {
/// <summary>
/// DormForm 摘要
///
/// 警告: 如果更改此类的名称,则需要更改
/// 与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
/// “资源文件名”属性。否则,
/// 设计器将不能与此窗体的关联
/// 本地化资源正确交互。
/// </summary>
public ref class DormForm : public System::Windows::Forms::Form
{
public:
DormForm(void)
{
InitializeComponent();
//
//TODO: 在此处添加构造函数代码
//
}
protected:
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
~DormForm()
{
if (components)
{
delete components;
}
}
private: My::MyOfficeDataSet^ MyOfficeDataSet;
protected:
private: System::Windows::Forms::BindingSource^ 集体宿舍管理BindingSource;
private: My::MyOfficeDataSetTableAdapters::集体宿舍管理TableAdapter^ 集体宿舍管理TableAdapter;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveLastItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator2;
private: System::Windows::Forms::ToolStripButton^ 集体宿舍管理BindingNavigatorSaveItem;
private: System::Windows::Forms::ToolStripTextBox^ bindingNavigatorPositionItem;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator1;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveNextItem;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn1;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn5;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn6;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn7;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn2;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn3;
private: System::Windows::Forms::DataGridViewTextBoxColumn^ dataGridViewTextBoxColumn4;
private: System::Windows::Forms::ToolStripSeparator^ bindingNavigatorSeparator;
private: System::Windows::Forms::TextBox^ 宿舍编号TextBox;
private: System::Windows::Forms::TextBox^ 室长TextBox;
private: System::Windows::Forms::TextBox^ 联系电话TextBox;
private: System::Windows::Forms::TextBox^ 入住员工TextBox;
private: System::Windows::Forms::TextBox^ 可住人数TextBox;
private: System::Windows::Forms::TextBox^ 月租费TextBox;
private: System::Windows::Forms::TextBox^ 说明TextBox;
private: System::Windows::Forms::ToolStripLabel^ bindingNavigatorCountItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorAddNewItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorDeleteItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMovePreviousItem;
private: System::Windows::Forms::ToolStripButton^ bindingNavigatorMoveFirstItem;
private: System::Windows::Forms::DataGridView^ 集体宿舍管理DataGridView;
private: System::Windows::Forms::BindingNavigator^ 集体宿舍管理BindingNavigator;
private: System::ComponentModel::IContainer^ components;
private:
/// <summary>
/// 必需的设计器变量。
/// </summary>
#pragma region Windows Form Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要
/// 使用代码编辑器修改此方法的内容。
/// </summary>
void InitializeComponent(void)
{
this->components = (gcnew System::ComponentModel::Container());
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(DormForm::typeid));
System::Windows::Forms::Label^ 宿舍编号Label;
System::Windows::Forms::Label^ 室长Label;
System::Windows::Forms::Label^ 联系电话Label;
System::Windows::Forms::Label^ 入住员工Label;
System::Windows::Forms::Label^ 可住人数Label;
System::Windows::Forms::Label^ 月租费Label;
System::Windows::Forms::Label^ 说明Label;
this->MyOfficeDataSet = (gcnew My::MyOfficeDataSet());
this->集体宿舍管理BindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
this->集体宿舍管理TableAdapter = (gcnew My::MyOfficeDataSetTableAdapters::集体宿舍管理TableAdapter());
this->bindingNavigatorMoveLastItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->集体宿舍管理BindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorPositionItem = (gcnew System::Windows::Forms::ToolStripTextBox());
this->bindingNavigatorSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
this->bindingNavigatorMoveNextItem = (gcnew System::Windows::Forms::ToolStripButton());
this->dataGridViewTextBoxColumn1 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn5 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn6 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn7 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn2 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn3 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->dataGridViewTextBoxColumn4 = (gcnew System::Windows::Forms::DataGridViewTextBoxColumn());
this->bindingNavigatorSeparator = (gcnew System::Windows::Forms::ToolStripSeparator());
this->宿舍编号TextBox = (gcnew System::Windows::Forms::TextBox());
this->室长TextBox = (gcnew System::Windows::Forms::TextBox());
this->联系电话TextBox = (gcnew System::Windows::Forms::TextBox());
this->入住员工TextBox = (gcnew System::Windows::Forms::TextBox());
this->可住人数TextBox = (gcnew System::Windows::Forms::TextBox());
this->月租费TextBox = (gcnew System::Windows::Forms::TextBox());
this->说明TextBox = (gcnew System::Windows::Forms::TextBox());
this->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
this->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorDeleteItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMovePreviousItem = (gcnew System::Windows::Forms::ToolStripButton());
this->bindingNavigatorMoveFirstItem = (gcnew System::Windows::Forms::ToolStripButton());
this->集体宿舍管理DataGridView = (gcnew System::Windows::Forms::DataGridView());
this->集体宿舍管理BindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
宿舍编号Label = (gcnew System::Windows::Forms::Label());
室长Label = (gcnew System::Windows::Forms::Label());
联系电话Label = (gcnew System::Windows::Forms::Label());
入住员工Label = (gcnew System::Windows::Forms::Label());
可住人数Label = (gcnew System::Windows::Forms::Label());
月租费Label = (gcnew System::Windows::Forms::Label());
说明Label = (gcnew System::Windows::Forms::Label());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->MyOfficeDataSet))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->集体宿舍管理BindingSource))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->集体宿舍管理DataGridView))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->集体宿舍管理BindingNavigator))->BeginInit();
this->集体宿舍管理BindingNavigator->SuspendLayout();
this->SuspendLayout();
//
// MyOfficeDataSet
//
this->MyOfficeDataSet->DataSetName = L"MyOfficeDataSet";
this->MyOfficeDataSet->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
//
// 集体宿舍管理BindingSource
//
this->集体宿舍管理BindingSource->DataMember = L"集体宿舍管理";
this->集体宿舍管理BindingSource->DataSource = this->MyOfficeDataSet;
//
// 集体宿舍管理TableAdapter
//
this->集体宿舍管理TableAdapter->ClearBeforeFill = true;
//
// bindingNavigatorMoveLastItem
//
this->bindingNavigatorMoveLastItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMoveLastItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMoveLastItem.Image")));
this->bindingNavigatorMoveLastItem->Name = L"bindingNavigatorMoveLastItem";
this->bindingNavigatorMoveLastItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMoveLastItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMoveLastItem->Text = L"移到最后一条记录";
//
// bindingNavigatorSeparator2
//
this->bindingNavigatorSeparator2->Name = L"bindingNavigatorSeparator2";
this->bindingNavigatorSeparator2->Size = System::Drawing::Size(6, 25);
//
// 集体宿舍管理BindingNavigatorSaveItem
//
this->集体宿舍管理BindingNavigatorSaveItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"集体宿舍管理BindingNavigatorSaveItem.Image")));
this->集体宿舍管理BindingNavigatorSaveItem->Name = L"集体宿舍管理BindingNavigatorSaveItem";
this->集体宿舍管理BindingNavigatorSaveItem->Size = System::Drawing::Size(49, 22);
this->集体宿舍管理BindingNavigatorSaveItem->Text = L"保存";
this->集体宿舍管理BindingNavigatorSaveItem->Click += gcnew System::EventHandler(this, &DormForm::集体宿舍管理BindingNavigatorSaveItem_Click);
//
// bindingNavigatorPositionItem
//
this->bindingNavigatorPositionItem->AccessibleName = L"位置";
this->bindingNavigatorPositionItem->AutoSize = false;
this->bindingNavigatorPositionItem->Name = L"bindingNavigatorPositionItem";
this->bindingNavigatorPositionItem->Size = System::Drawing::Size(50, 21);
this->bindingNavigatorPositionItem->Text = L"0";
this->bindingNavigatorPositionItem->ToolTipText = L"当前位置";
//
// bindingNavigatorSeparator1
//
this->bindingNavigatorSeparator1->Name = L"bindingNavigatorSeparator1";
this->bindingNavigatorSeparator1->Size = System::Drawing::Size(6, 25);
//
// bindingNavigatorMoveNextItem
//
this->bindingNavigatorMoveNextItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
this->bindingNavigatorMoveNextItem->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"bindingNavigatorMoveNextItem.Image")));
this->bindingNavigatorMoveNextItem->Name = L"bindingNavigatorMoveNextItem";
this->bindingNavigatorMoveNextItem->RightToLeftAutoMirrorImage = true;
this->bindingNavigatorMoveNextItem->Size = System::Drawing::Size(23, 22);
this->bindingNavigatorMoveNextItem->Text = L"移到下一条记录";
//
// dataGridViewTextBoxColumn1
//
this->dataGridViewTextBoxColumn1->DataPropertyName = L"宿舍编号";
this->dataGridViewTextBoxColumn1->HeaderText = L"宿舍编号";
this->dataGridViewTextBoxColumn1->Name = L"dataGridViewTextBoxColumn1";
this->dataGridViewTextBoxColumn1->ReadOnly = true;
//
// dataGridViewTextBoxColumn5
//
this->dataGridViewTextBoxColumn5->DataPropertyName = L"可住人数";
this->dataGridViewTextBoxColumn5->HeaderText = L"可住人数";
this->dataGridViewTextBoxColumn5->Name = L"dataGridViewTextBoxColumn5";
this->dataGridViewTextBoxColumn5->ReadOnly = true;
//
// dataGridViewTextBoxColumn6
//
this->dataGridViewTextBoxColumn6->DataPropertyName = L"月租费";
this->dataGridViewTextBoxColumn6->HeaderText = L"月租费";
this->dataGridViewTextBoxColumn6->Name = L"dataGridViewTextBoxColumn6";
this->dataGridViewTextBoxColumn6->ReadOnly = true;
//
// dataGridViewTextBoxColumn7
//
this->dataGridViewTextBoxColumn7->DataPropertyName = L"说明";
this->dataGridViewTextBoxColumn7->HeaderText = L"说明";
this->dataGridViewTextBoxColumn7->Name = L"dataGridViewTextBoxColumn7";
this->dataGridViewTextBoxColumn7->ReadOnly = true;
//
// dataGridViewTextBoxColumn2
//
this->dataGridViewTextBoxColumn2->DataPropertyName = L"室长";
this->dataGridViewTextBoxColumn2->HeaderText = L"室长";
this->dataGridViewTextBoxColumn2->Name = L"dataGridViewTextBoxColumn2";
this->dataGridViewTextBoxColumn2->ReadOnly = true;
//
// dataGridViewTextBoxColumn3
//
this->dataGridViewTextBoxColumn3->DataPropertyName = L"联系电话";
this->dataGridViewTextBoxColumn3->HeaderText = L"联系电话";
this->dataGridViewTextBoxColumn3->Name = L"dataGridViewTextBoxColumn3";
this->dataGridViewTextBoxColumn3->ReadOnly = true;
//
// dataGridViewTextBoxColumn4
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -