📄 form1.h
字号:
this->treeView1->Size = System::Drawing::Size(126, 124);
this->treeView1->TabIndex = 5;
this->treeView1->AfterSelect += new System::Windows::Forms::TreeViewEventHandler(this, treeView1_AfterSelect);
//
// richTextBox1
//
this->richTextBox1->AllowDrop = true;
this->richTextBox1->Location = System::Drawing::Point(270, 12);
this->richTextBox1->Name = S"richTextBox1";
this->richTextBox1->Size = System::Drawing::Size(198, 144);
this->richTextBox1->TabIndex = 4;
this->richTextBox1->Text = S"richTextBox1";
this->richTextBox1->DragDrop += new System::Windows::Forms::DragEventHandler(this, richTextBox1_DragDrop);
this->richTextBox1->DragEnter += new System::Windows::Forms::DragEventHandler(this, richTextBox1_DragEnter);
//
// btnOpenGIF
//
this->btnOpenGIF->Location = System::Drawing::Point(156, 124);
this->btnOpenGIF->Name = S"btnOpenGIF";
this->btnOpenGIF->Size = System::Drawing::Size(108, 25);
this->btnOpenGIF->TabIndex = 3;
this->btnOpenGIF->Text = S"选择GIF动画文件";
this->btnOpenGIF->Click += new System::EventHandler(this, btnOpenGIF_Click);
//
// picGIF
//
this->picGIF->Location = System::Drawing::Point(162, 12);
this->picGIF->Name = S"picGIF";
this->picGIF->Size = System::Drawing::Size(96, 100);
this->picGIF->TabIndex = 2;
this->picGIF->TabStop = false;
//
// tabPage2
//
this->tabPage2->Controls->Add(this->label1);
this->tabPage2->Controls->Add(this->listView2);
this->tabPage2->Location = System::Drawing::Point(4, 21);
this->tabPage2->Name = S"tabPage2";
this->tabPage2->Size = System::Drawing::Size(472, 293);
this->tabPage2->TabIndex = 1;
this->tabPage2->Text = S"组件";
//
// label1
//
this->label1->Location = System::Drawing::Point(210, 19);
this->label1->Name = S"label1";
this->label1->Size = System::Drawing::Size(258, 99);
this->label1->TabIndex = 1;
this->label1->Text = S"label1";
//
// listView2
//
this->listView2->Location = System::Drawing::Point(6, 6);
this->listView2->Name = S"listView2";
this->listView2->Size = System::Drawing::Size(186, 280);
this->listView2->TabIndex = 0;
//
// tabPage3
//
this->tabPage3->Controls->Add(this->dataGrid1);
this->tabPage3->Location = System::Drawing::Point(4, 21);
this->tabPage3->Name = S"tabPage3";
this->tabPage3->Size = System::Drawing::Size(472, 293);
this->tabPage3->TabIndex = 2;
this->tabPage3->Text = S"数据库";
//
// dataGrid1
//
this->dataGrid1->DataMember = S"";
this->dataGrid1->DataSource = this->dataSet1->Readers;
this->dataGrid1->HeaderForeColor = System::Drawing::SystemColors::ControlText;
this->dataGrid1->Location = System::Drawing::Point(6, 6);
this->dataGrid1->Name = S"dataGrid1";
this->dataGrid1->Size = System::Drawing::Size(462, 286);
this->dataGrid1->TabIndex = 0;
//
// dataSet1
//
this->dataSet1->DataSetName = S"DataSet1";
this->dataSet1->Locale = new System::Globalization::CultureInfo(S"zh-CN");
//
// timer1
//
this->timer1->Enabled = true;
this->timer1->Interval = 3000;
this->timer1->Tick += new System::EventHandler(this, timer1_Tick);
//
// fileSystemWatcher1
//
this->fileSystemWatcher1->EnableRaisingEvents = true;
this->fileSystemWatcher1->IncludeSubdirectories = true;
this->fileSystemWatcher1->Path = S"C:\\";
this->fileSystemWatcher1->SynchronizingObject = this;
this->fileSystemWatcher1->Deleted += new System::IO::FileSystemEventHandler(this, fileSystemWatcher1_Deleted);
this->fileSystemWatcher1->Renamed += new System::IO::RenamedEventHandler(this, fileSystemWatcher1_Renamed);
this->fileSystemWatcher1->Changed += new System::IO::FileSystemEventHandler(this, fileSystemWatcher1_Changed);
this->fileSystemWatcher1->Created += new System::IO::FileSystemEventHandler(this, fileSystemWatcher1_Created);
//
// oleDbConnection1
//
this->oleDbConnection1->ConnectionString = S"Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database L"
S"ocking Mode=1;Data Source=\"E:\\VC开发小型软件项目\\VCDotnet\\Library.mdb\";Mode=Share Deny N"
S"one;Jet OLEDB:Engine Type=5;Provider=\"Microsoft.Jet.OLEDB.4.0\";Jet OLEDB:System "
S"database=;Jet OLEDB:SFP=False;persist security info=False;Extended Properties=;J"
S"et OLEDB:Compact Without Replica Repair=False;Jet OLEDB:Encrypt Database=False;J"
S"et OLEDB:Create System Database=False;Jet OLEDB:Don\'t Copy Locale on Compact=Fal"
S"se;User ID=Admin;Jet OLEDB:Global Bulk Transactions=1";
//
// oleDbDataAdapter1
//
this->oleDbDataAdapter1->DeleteCommand = this->oleDbDeleteCommand1;
this->oleDbDataAdapter1->InsertCommand = this->oleDbInsertCommand1;
this->oleDbDataAdapter1->SelectCommand = this->oleDbSelectCommand1;
System::Data::Common::DataTableMapping* __mcTemp__2[] = new System::Data::Common::DataTableMapping*[1];
System::Data::Common::DataColumnMapping* __mcTemp__3[] = new System::Data::Common::DataColumnMapping*[7];
__mcTemp__3[0] = new System::Data::Common::DataColumnMapping(S"BookCount", S"BookCount");
__mcTemp__3[1] = new System::Data::Common::DataColumnMapping(S"CanBorrow", S"CanBorrow");
__mcTemp__3[2] = new System::Data::Common::DataColumnMapping(S"Contact", S"Contact");
__mcTemp__3[3] = new System::Data::Common::DataColumnMapping(S"Name", S"Name");
__mcTemp__3[4] = new System::Data::Common::DataColumnMapping(S"Password", S"Password");
__mcTemp__3[5] = new System::Data::Common::DataColumnMapping(S"ReaderID", S"ReaderID");
__mcTemp__3[6] = new System::Data::Common::DataColumnMapping(S"ReaderKind", S"ReaderKind");
__mcTemp__2[0] = new System::Data::Common::DataTableMapping(S"Table", S"Readers", __mcTemp__3);
this->oleDbDataAdapter1->TableMappings->AddRange(__mcTemp__2);
this->oleDbDataAdapter1->UpdateCommand = this->oleDbUpdateCommand1;
//
// oleDbDeleteCommand1
//
this->oleDbDeleteCommand1->CommandText = S"DELETE FROM Readers WHERE (ReaderID = \?) AND (BookCount = \? OR \? IS NULL AND Book"
S"Count IS NULL) AND (CanBorrow = \?) AND (Contact = \? OR \? IS NULL AND Contact IS "
S"NULL) AND (Name = \? OR \? IS NULL AND Name IS NULL) AND ([Password] = \? OR \? IS N"
S"ULL AND [Password] IS NULL) AND (ReaderKind = \? OR \? IS NULL AND ReaderKind IS N"
S"ULL)";
this->oleDbDeleteCommand1->Connection = this->oleDbConnection1;
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_ReaderID", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"ReaderID", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_BookCount", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"BookCount", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_BookCount1", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"BookCount", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_CanBorrow", System::Data::OleDb::OleDbType::Boolean, 2, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"CanBorrow", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Contact", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Contact", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Contact1", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Contact", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Name", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Name", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Name1", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Name", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Password", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Password", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Password1", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Password", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_ReaderKind", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"ReaderKind", System::Data::DataRowVersion::Original, 0));
this->oleDbDeleteCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_ReaderKind1", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"ReaderKind", System::Data::DataRowVersion::Original, 0));
//
// oleDbInsertCommand1
//
this->oleDbInsertCommand1->CommandText = S"INSERT INTO Readers(BookCount, CanBorrow, Contact, Name, [Password], ReaderID, Re"
S"aderKind) VALUES (\?, \?, \?, \?, \?, \?, \?)";
this->oleDbInsertCommand1->Connection = this->oleDbConnection1;
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"BookCount", System::Data::OleDb::OleDbType::Integer, 0, S"BookCount"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"CanBorrow", System::Data::OleDb::OleDbType::Boolean, 2, S"CanBorrow"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Contact", System::Data::OleDb::OleDbType::VarWChar, 50, S"Contact"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Name", System::Data::OleDb::OleDbType::VarWChar, 50, S"Name"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Password", System::Data::OleDb::OleDbType::VarWChar, 50, S"Password"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"ReaderID", System::Data::OleDb::OleDbType::Integer, 0, S"ReaderID"));
this->oleDbInsertCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"ReaderKind", System::Data::OleDb::OleDbType::Integer, 0, S"ReaderKind"));
//
// oleDbSelectCommand1
//
this->oleDbSelectCommand1->CommandText = S"SELECT BookCount, CanBorrow, Contact, Name, [Password], ReaderID, ReaderKind FROM"
S" Readers";
this->oleDbSelectCommand1->Connection = this->oleDbConnection1;
//
// oleDbUpdateCommand1
//
this->oleDbUpdateCommand1->CommandText = S"UPDATE Readers SET BookCount = \?, CanBorrow = \?, Contact = \?, Name = \?, [Password"
S"] = \?, ReaderID = \?, ReaderKind = \? WHERE (ReaderID = \?) AND (BookCount = \? OR \?"
S" IS NULL AND BookCount IS NULL) AND (CanBorrow = \?) AND (Contact = \? OR \? IS NUL"
S"L AND Contact IS NULL) AND (Name = \? OR \? IS NULL AND Name IS NULL) AND ([Passwo"
S"rd] = \? OR \? IS NULL AND [Password] IS NULL) AND (ReaderKind = \? OR \? IS NULL AN"
S"D ReaderKind IS NULL)";
this->oleDbUpdateCommand1->Connection = this->oleDbConnection1;
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"BookCount", System::Data::OleDb::OleDbType::Integer, 0, S"BookCount"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"CanBorrow", System::Data::OleDb::OleDbType::Boolean, 2, S"CanBorrow"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Contact", System::Data::OleDb::OleDbType::VarWChar, 50, S"Contact"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Name", System::Data::OleDb::OleDbType::VarWChar, 50, S"Name"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Password", System::Data::OleDb::OleDbType::VarWChar, 50, S"Password"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"ReaderID", System::Data::OleDb::OleDbType::Integer, 0, S"ReaderID"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"ReaderKind", System::Data::OleDb::OleDbType::Integer, 0, S"ReaderKind"));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_ReaderID", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"ReaderID", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_BookCount", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"BookCount", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_BookCount1", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"BookCount", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_CanBorrow", System::Data::OleDb::OleDbType::Boolean, 2, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"CanBorrow", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Contact", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Contact", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Contact1", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Contact", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Name", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Name", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Name1", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Name", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Password", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Password", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_Password1", System::Data::OleDb::OleDbType::VarWChar, 50, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"Password", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_ReaderKind", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"ReaderKind", System::Data::DataRowVersion::Original, 0));
this->oleDbUpdateCommand1->Parameters->Add(new System::Data::OleDb::OleDbParameter(S"Original_ReaderKind1", System::Data::OleDb::OleDbType::Integer, 0, System::Data::ParameterDirection::Input, false, (System::Byte)0, (System::Byte)0, S"ReaderKind", System::Data::DataRowVersion::Original, 0));
//
// Form1
//
this->AllowDrop = true;
this->AutoScaleBaseSize = System::Drawing::Size(6, 14);
this->ClientSize = System::Drawing::Size(492, 329);
this->Controls->Add(this->tabControl1);
this->Name = S"Form1";
this->Text = S"Visual C++ .Net新功能演示器";
this->Load += new System::EventHandler(this, Form1_Load);
this->DragDrop += new System::Windows::Forms::DragEventHandler(this, Form1_DragDrop);
this->DragEnter += new System::Windows::Forms::DragEventHandler(this, Form1_DragEnter);
this->tabControl1->ResumeLayout(false);
this->tabPage1->ResumeLayout(false);
this->tabPage2->ResumeLayout(false);
this->tabPage3->ResumeLayout(false);
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataGrid1))->EndInit();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->dataSet1))->EndInit();
(__try_cast<System::ComponentModel::ISupportInitialize * >(this->fileSystemWatcher1))->EndInit();
this->ResumeLayout(false);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -