⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.h

📁 Visual C++ 2005的源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
#pragma once


namespace Ex22_04 {

	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>
	/// Summary for Form1
	///
	/// 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 Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
  private: Ex22_04::DataSet1^  DataSet1;
  protected: 
  private: System::Windows::Forms::BindingSource^  Order_DetailsBindingSource;
  private: Ex22_04::DataSet1TableAdapters::Order_DetailsTableAdapter^  Order_DetailsTableAdapter;
  private: System::Windows::Forms::BindingNavigator^  Order_DetailsBindingNavigator;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorAddNewItem;
  private: System::Windows::Forms::ToolStripLabel^  bindingNavigatorCountItem;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorDeleteItem;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveFirstItem;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMovePreviousItem;
  private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator;
  private: System::Windows::Forms::ToolStripTextBox^  bindingNavigatorPositionItem;
  private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator1;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveNextItem;
  private: System::Windows::Forms::ToolStripButton^  bindingNavigatorMoveLastItem;
  private: System::Windows::Forms::ToolStripSeparator^  bindingNavigatorSeparator2;
  private: System::Windows::Forms::ToolStripButton^  Order_DetailsBindingNavigatorSaveItem;
  private: System::Windows::Forms::TextBox^  OrderIDTextBox;
  private: System::Windows::Forms::TextBox^  ProductIDTextBox;
  private: System::Windows::Forms::TextBox^  UnitPriceTextBox;
  private: System::Windows::Forms::NumericUpDown^  QuantityNumericUpDown;
  private: System::Windows::Forms::TextBox^  DiscountTextBox;
  private: System::ComponentModel::IContainer^  components;

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>


#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->components = (gcnew System::ComponentModel::Container());
      System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
      System::Windows::Forms::Label^  OrderIDLabel;
      System::Windows::Forms::Label^  ProductIDLabel;
      System::Windows::Forms::Label^  UnitPriceLabel;
      System::Windows::Forms::Label^  QuantityLabel;
      System::Windows::Forms::Label^  DiscountLabel;
      this->DataSet1 = (gcnew Ex22_04::DataSet1());
      this->Order_DetailsBindingSource = (gcnew System::Windows::Forms::BindingSource(this->components));
      this->Order_DetailsTableAdapter = (gcnew Ex22_04::DataSet1TableAdapters::Order_DetailsTableAdapter());
      this->Order_DetailsBindingNavigator = (gcnew System::Windows::Forms::BindingNavigator(this->components));
      this->bindingNavigatorMoveFirstItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorMovePreviousItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorSeparator = (gcnew System::Windows::Forms::ToolStripSeparator());
      this->bindingNavigatorPositionItem = (gcnew System::Windows::Forms::ToolStripTextBox());
      this->bindingNavigatorCountItem = (gcnew System::Windows::Forms::ToolStripLabel());
      this->bindingNavigatorSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
      this->bindingNavigatorMoveNextItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorMoveLastItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorSeparator2 = (gcnew System::Windows::Forms::ToolStripSeparator());
      this->bindingNavigatorAddNewItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->bindingNavigatorDeleteItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->Order_DetailsBindingNavigatorSaveItem = (gcnew System::Windows::Forms::ToolStripButton());
      this->OrderIDTextBox = (gcnew System::Windows::Forms::TextBox());
      this->ProductIDTextBox = (gcnew System::Windows::Forms::TextBox());
      this->UnitPriceTextBox = (gcnew System::Windows::Forms::TextBox());
      this->QuantityNumericUpDown = (gcnew System::Windows::Forms::NumericUpDown());
      this->DiscountTextBox = (gcnew System::Windows::Forms::TextBox());
      OrderIDLabel = (gcnew System::Windows::Forms::Label());
      ProductIDLabel = (gcnew System::Windows::Forms::Label());
      UnitPriceLabel = (gcnew System::Windows::Forms::Label());
      QuantityLabel = (gcnew System::Windows::Forms::Label());
      DiscountLabel = (gcnew System::Windows::Forms::Label());
      (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->DataSet1))->BeginInit();
      (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Order_DetailsBindingSource))->BeginInit();
      (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->Order_DetailsBindingNavigator))->BeginInit();
      this->Order_DetailsBindingNavigator->SuspendLayout();
      (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->QuantityNumericUpDown))->BeginInit();
      this->SuspendLayout();
      // 
      // DataSet1
      // 
      this->DataSet1->DataSetName = L"DataSet1";
      this->DataSet1->SchemaSerializationMode = System::Data::SchemaSerializationMode::IncludeSchema;
      // 
      // Order_DetailsBindingSource
      // 
      this->Order_DetailsBindingSource->DataMember = L"Order Details";
      this->Order_DetailsBindingSource->DataSource = this->DataSet1;
      // 
      // Order_DetailsTableAdapter
      // 
      this->Order_DetailsTableAdapter->ClearBeforeFill = true;
      // 
      // Order_DetailsBindingNavigator
      // 
      this->Order_DetailsBindingNavigator->AddNewItem = this->bindingNavigatorAddNewItem;
      this->Order_DetailsBindingNavigator->BindingSource = this->Order_DetailsBindingSource;
      this->Order_DetailsBindingNavigator->CountItem = this->bindingNavigatorCountItem;
      this->Order_DetailsBindingNavigator->DeleteItem = this->bindingNavigatorDeleteItem;
      this->Order_DetailsBindingNavigator->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(12) {this->bindingNavigatorMoveFirstItem, 
        this->bindingNavigatorMovePreviousItem, this->bindingNavigatorSeparator, this->bindingNavigatorPositionItem, this->bindingNavigatorCountItem, 
        this->bindingNavigatorSeparator1, this->bindingNavigatorMoveNextItem, this->bindingNavigatorMoveLastItem, this->bindingNavigatorSeparator2, 
        this->bindingNavigatorAddNewItem, this->bindingNavigatorDeleteItem, this->Order_DetailsBindingNavigatorSaveItem});
      this->Order_DetailsBindingNavigator->Location = System::Drawing::Point(0, 0);
      this->Order_DetailsBindingNavigator->MoveFirstItem = this->bindingNavigatorMoveFirstItem;
      this->Order_DetailsBindingNavigator->MoveLastItem = this->bindingNavigatorMoveLastItem;
      this->Order_DetailsBindingNavigator->MoveNextItem = this->bindingNavigatorMoveNextItem;
      this->Order_DetailsBindingNavigator->MovePreviousItem = this->bindingNavigatorMovePreviousItem;
      this->Order_DetailsBindingNavigator->Name = L"Order_DetailsBindingNavigator";
      this->Order_DetailsBindingNavigator->PositionItem = this->bindingNavigatorPositionItem;
      this->Order_DetailsBindingNavigator->Size = System::Drawing::Size(349, 25);
      this->Order_DetailsBindingNavigator->TabIndex = 0;
      this->Order_DetailsBindingNavigator->Text = L"bindingNavigator1";
      // 
      // bindingNavigatorMoveFirstItem
      // 
      this->bindingNavigatorMoveFirstItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
      this->bindingNavigatorMoveFirstItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorMoveFirstItem.Image")));
      this->bindingNavigatorMoveFirstItem->Name = L"bindingNavigatorMoveFirstItem";
      this->bindingNavigatorMoveFirstItem->RightToLeftAutoMirrorImage = true;
      this->bindingNavigatorMoveFirstItem->Size = System::Drawing::Size(23, 22);
      this->bindingNavigatorMoveFirstItem->Text = L"Move first";
      // 
      // bindingNavigatorMovePreviousItem
      // 
      this->bindingNavigatorMovePreviousItem->DisplayStyle = System::Windows::Forms::ToolStripItemDisplayStyle::Image;
      this->bindingNavigatorMovePreviousItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"bindingNavigatorMovePreviousItem.Image")));
      this->bindingNavigatorMovePreviousItem->Name = L"bindingNavigatorMovePreviousItem";
      this->bindingNavigatorMovePreviousItem->RightToLeftAutoMirrorImage = true;
      this->bindingNavigatorMovePreviousItem->Size = System::Drawing::Size(23, 22);
      this->bindingNavigatorMovePreviousItem->Text = L"Move previous";
      // 
      // bindingNavigatorSeparator
      // 
      this->bindingNavigatorSeparator->Name = L"bindingNavigatorSeparator";
      this->bindingNavigatorSeparator->Size = System::Drawing::Size(6, 25);
      // 
      // bindingNavigatorPositionItem
      // 
      this->bindingNavigatorPositionItem->AccessibleName = L"Position";
      this->bindingNavigatorPositionItem->AutoSize = false;
      this->bindingNavigatorPositionItem->Name = L"bindingNavigatorPositionItem";
      this->bindingNavigatorPositionItem->Size = System::Drawing::Size(50, 23);
      this->bindingNavigatorPositionItem->Text = L"0";
      this->bindingNavigatorPositionItem->ToolTipText = L"Current position";
      // 
      // bindingNavigatorCountItem
      // 
      this->bindingNavigatorCountItem->Name = L"bindingNavigatorCountItem";
      this->bindingNavigatorCountItem->Size = System::Drawing::Size(42, 16);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -