Разработка приложения "База данных "Гостиница"
Курсовой проект - Компьютеры, программирование
Другие курсовые по предмету Компьютеры, программирование
ws
///
/// Обязательный метод для поддержки конструктора - не изменяйте
/// содержимое данного метода при помощи редактора кода.
/// void InitializeComponent()
{.components = new System.ComponentModel.Container();.textBox1 = new System.Windows.Forms.TextBox();.checkBox1 = new System.Windows.Forms.CheckBox();.checkBox2 = new System.Windows.Forms.CheckBox();.label1 = new System.Windows.Forms.Label();.label2 = new System.Windows.Forms.Label();.dataGridView1 = new System.Windows.Forms.DataGridView();.idDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();.numberOfRoomDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();.countPlaceDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();.airCondDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();.tVDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();.wCDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();.costDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();.roomsBindingSource = new System.Windows.Forms.BindingSource(this.components);._Hotel_BDDataSet = new kursovaya._Hotel_BDDataSet();.groupBox1 = new System.Windows.Forms.GroupBox();.label6 = new System.Windows.Forms.Label();.button4 = new System.Windows.Forms.Button();.button3 = new System.Windows.Forms.Button();.button2 = new System.Windows.Forms.Button();.numericUpDown1 = new System.Windows.Forms.NumericUpDown();.checkBox3 = new System.Windows.Forms.CheckBox();.label5 = new System.Windows.Forms.Label();.label4 = new System.Windows.Forms.Label();.label3 = new System.Windows.Forms.Label();.textBox2 = new System.Windows.Forms.TextBox();.menuStrip1 = new System.Windows.Forms.MenuStrip();.файлToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();.выходИзПрограммыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();.справкаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();.roomsTableAdapter = new kursovaya._Hotel_BDDataSetTableAdapters.RoomsTableAdapter();.groupBox2 = new System.Windows.Forms.GroupBox();.label9 = new System.Windows.Forms.Label();.label8 = new System.Windows.Forms.Label();.label7 = new System.Windows.Forms.Label();.textBox4 = new System.Windows.Forms.TextBox();.textBox3 = new System.Windows.Forms.TextBox();.button1 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.roomsBindingSource)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this._Hotel_BDDataSet)).BeginInit();.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();.menuStrip1.SuspendLayout();.groupBox2.SuspendLayout();.SuspendLayout();
//
// textBox1
//.textBox1.Location = new System.Drawing.Point(143, 175);.textBox1.Name = "textBox1";.textBox1.Size = new System.Drawing.Size(100, 20);.textBox1.TabIndex = 2;.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBox1_KeyPress);
//
// checkBox1
//.checkBox1.AutoSize = true;.checkBox1.Location = new System.Drawing.Point(183, 56);.checkBox1.Name = "checkBox1";.checkBox1.Size = new System.Drawing.Size(65, 30);.checkBox1.TabIndex = 3;.checkBox1.Text = "Да/Нет\r\n\r\n";.checkBox1.UseVisualStyleBackColor = true;
//
// checkBox2
//.checkBox2.AutoSize = true;.checkBox2.Location = new System.Drawing.Point(183, 91);.checkBox2.Name = "checkBox2";.checkBox2.Size = new System.Drawing.Size(65, 17);.checkBox2.TabIndex = 4;.checkBox2.Text = "Да/Нет";.checkBox2.UseVisualStyleBackColor = true;
//
// label1
//.label1.AutoSize = true;.label1.Location = new System.Drawing.Point(94, 56);.label1.Name = "label1";.label1.Size = new System.Drawing.Size(74, 13);.label1.TabIndex = 5;.label1.Text = "Кондиционер";
//
// label2
//.label2.AutoSize = true;.label2.Location = new System.Drawing.Point(94, 92);.label2.Name = "label2";.label2.Size = new System.Drawing.Size(62, 13);.label2.TabIndex = 6;.label2.Text = "Телевизор";
//
// dataGridView1
//.dataGridView1.AllowUserToAddRows = false;.dataGridView1.AllowUserToDeleteRows = false;.dataGridView1.AutoGenerateColumns = false;.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[]{.idDataGridViewTextBoxColumn,.numberOfRoomDataGridViewTextBoxColumn,.countPlaceDataGridViewTextBoxColumn,.airCondDataGridViewCheckBoxColumn,.tVDataGridViewCheckBoxColumn,.wCDataGridViewCheckBoxColumn,.costDataGridViewTextBoxColumn});.dataGridView1.DataSource =this.roomsBindingSource;.dataGridView1.Location = new System.Drawing.Point(40, 50);.dataGridView1.Name = "dataGridView1";.dataGridView1.ReadOnly = true;.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;.dataGridView1.Size = new System.Drawing.Size(574, 255);.dataGridView1.TabIndex = 7;.dataGridView1.SelectionChanged += new System.EventHandler(this.dataGridView1_SelectionChanged);
//
// idDataGridViewTextBoxColumn
//.idDataGridViewTextBoxColumn.DataPropertyName = "id";.idDataGridViewTextBoxColumn.HeaderText = "id";.idDataGridViewTextBoxColumn.Name = "idDataGridViewTextBoxColumn";.idDataGridViewTextBoxColumn.ReadOnly = true;.idDataGridViewTextBoxColumn.Width = 30;
//
// numberOfRoomDataGridViewTextBoxColumn
//.numberOfRoomDataGridViewTextBoxColumn.DataPropertyName = "numberOfRoom";.numberOfRoomDataGridViewTextBoxColumn.HeaderText = "numberOfRoom";.numberOfRoomDataGridViewTextBoxColumn.Name = "numberOfRoomDataGridViewTextBoxColumn";.numberOfRoomDataGridViewTextBoxColumn.ReadOnly = true;
//
// countPlaceDataGridViewTextBoxColumn
//.countPlaceDataGridViewTextBoxColumn.DataPropertyName = "CountPlace";.countPlaceDataGridViewTextBoxColumn.HeaderText = "CountPlace";.countPlaceDataGridViewTextBoxColumn.Name = "countPlaceDataGridViewTextBoxColumn";.countPlaceDataGridViewTextBoxColumn.ReadOnly = true;
//
// airCondDataGridViewCheckBoxColumn
//.airCondDataGridViewCheckBoxColumn.DataPropertyName = "AirCond";.airCondDataGridViewCheckBoxColumn.HeaderText = "AirCond";.airCondDataGridViewCheckBoxColumn.Name = "airCondDataGridViewCheckBoxColumn";.airCondDataGridViewCheckBoxColumn.ReadOnly = true;
//
// tVDataGridViewCheckBoxColumn
//.tVDataGridViewCheckBoxColumn.DataPropertyName = "TV";.tVDataGridViewCheckBoxColumn.HeaderText = "TV";.tVDataGridViewCheckBoxColumn.Name = "tVDataGridViewCheckBoxColumn";.tVDataGridViewCheckBoxColumn.ReadOnly = true;.tVDataGridViewCheckBoxColumn.Width = 50;
//
// wCDataGridViewCheckBoxColumn
//.wCDataGridViewCheckBoxColumn.DataPropertyName = "WC";.wCDataGridViewCheckBoxColumn.HeaderText = "WC";.wCDataGridViewCheckBoxColumn.Name = "wCDataGridViewCheckBoxColumn";.wCDataGridViewCheckBoxColumn.ReadOnly = true;.wCDataGridViewCheckBoxColumn.Width = 50;
//
// costDataGridViewTextBoxColumn
//.costDataGridViewTextBoxColumn.DataPropertyName = "Cost";.costDataGridViewTextBoxColumn.HeaderText = "Cost";.costDataGridViewTextBoxColumn.Name = "costDataGridViewTextBoxColumn";.costDataGridViewTextBoxColumn.ReadOnly = true;
//
// roomsBindingSource
//.roomsBindingSource.DataMember = "Rooms";.roomsBindingSource.DataSource =this._Hotel_BDDataSet;
//
// _Hotel_BDDataSet
//._Hotel_BDDataSet.DataSetName = "_Hotel_BDDataSet";._Hotel_BDDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
//
// groupBox1
//.groupBox1.Controls.Add(this.label6);.groupBox1.Controls.Add(this.button4);.groupBox1.Controls.Add(this.button3);.groupBox1.Controls.Add(this.button2);.groupBox1.Controls.Add(this.numericUpDown1);.groupBox1.Controls.Add(this.checkBox3);.groupBox1.Controls.Add(this.label5);.groupBox1.Controls.Add(this.label4);.groupBox1.Controls.Add(this.label3);.groupBox1.Controls.Add(this.textBox2);.groupBox1.Controls.Add(this.textBox1);.groupBox1.Controls.Add(this.label2);.groupBox1.Controls.Add(this.label1);.groupBox1.Controls.Add(this.checkBox2);.groupBox1.Controls.Add(this.checkBox1);.groupBox1.Location = new System.Drawing.Point(649, 38);.groupBox1.Name = "groupBox1";.groupBox1.Size = new System.Drawing.Size(270, 267);.groupBox1.TabIndex = 8;.groupBox1.TabStop = false;.groupBox1.Text = "БД";
//
// label6
//.label6.AutoSize = true;.label6.Location = new System.Drawing.Point(70, 178);.label6.Name = "label6";.label6.Size = new System.Drawing.Size(62, 13);.label6.TabIndex = 17;.label6.Text = "Стоимость";
//
// button4
//.button4.Location = new System.Drawing.Point(174, 222);.button4.Name = "button4";.button4.Size = new System.Drawing.Size(75, 23);.button4.TabIndex = 16;.button4.Text = "Удалить";.button4.UseVisualStyleBackColor = true;.button4.Click += new System.Eve