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

📄 formproperty.cs

📁 C#2.0宝典源码,C#经典书籍,很多例子
💻 CS
📖 第 1 页 / 共 4 页
字号:
      // pictureBox4
      // 
      this.pictureBox4.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox4.Image")));
      this.pictureBox4.Location = new System.Drawing.Point(18, 4);
      this.pictureBox4.Name = "pictureBox4";
      this.pictureBox4.Size = new System.Drawing.Size(48, 40);
      this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
      this.pictureBox4.TabIndex = 6;
      this.pictureBox4.TabStop = false;
      // 
      // tabPage5
      // 
      this.tabPage5.BackColor = System.Drawing.Color.White;
      this.tabPage5.Controls.Add(this.dataGridAwards);
      this.tabPage5.Controls.Add(this.panel5);
      this.tabPage5.Controls.Add(this.label21);
      this.tabPage5.Controls.Add(this.pictureBox5);
      this.tabPage5.Location = new System.Drawing.Point(4, 21);
      this.tabPage5.Name = "tabPage5";
      this.tabPage5.Size = new System.Drawing.Size(456, 247);
      this.tabPage5.TabIndex = 4;
      this.tabPage5.Text = "获奖纪录";
      // 
      // dataGridAwards
      // 
      this.dataGridAwards.CaptionVisible = false;
      this.dataGridAwards.DataMember = "Awards";
      this.dataGridAwards.DataSource = this.dataSetMain;
      this.dataGridAwards.HeaderForeColor = System.Drawing.SystemColors.ControlText;
      this.dataGridAwards.Location = new System.Drawing.Point(10, 56);
      this.dataGridAwards.Name = "dataGridAwards";
      this.dataGridAwards.ReadOnly = true;
      this.dataGridAwards.Size = new System.Drawing.Size(438, 184);
      this.dataGridAwards.TabIndex = 10;
      this.dataGridAwards.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
                                                                                               this.dataGridTableStyle2});
      // 
      // dataGridTableStyle2
      // 
      this.dataGridTableStyle2.DataGrid = this.dataGridAwards;
      this.dataGridTableStyle2.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
                                                                                                          this.dataGridTextBoxColumn4,
                                                                                                          this.dataGridTextBoxColumn5,
                                                                                                          this.dataGridTextBoxColumn6});
      this.dataGridTableStyle2.HeaderForeColor = System.Drawing.SystemColors.ControlText;
      this.dataGridTableStyle2.MappingName = "Awards";
      // 
      // dataGridTextBoxColumn4
      // 
      this.dataGridTextBoxColumn4.Format = "";
      this.dataGridTextBoxColumn4.FormatInfo = null;
      this.dataGridTextBoxColumn4.HeaderText = "获奖内容";
      this.dataGridTextBoxColumn4.MappingName = "award_content";
      this.dataGridTextBoxColumn4.Width = 75;
      // 
      // dataGridTextBoxColumn5
      // 
      this.dataGridTextBoxColumn5.Format = "";
      this.dataGridTextBoxColumn5.FormatInfo = null;
      this.dataGridTextBoxColumn5.HeaderText = "获奖原因";
      this.dataGridTextBoxColumn5.MappingName = "award_reason";
      this.dataGridTextBoxColumn5.Width = 150;
      // 
      // dataGridTextBoxColumn6
      // 
      this.dataGridTextBoxColumn6.Format = "";
      this.dataGridTextBoxColumn6.FormatInfo = null;
      this.dataGridTextBoxColumn6.HeaderText = "获奖日期";
      this.dataGridTextBoxColumn6.MappingName = "award_date";
      this.dataGridTextBoxColumn6.Width = 75;
      // 
      // panel5
      // 
      this.panel5.BackColor = System.Drawing.SystemColors.GrayText;
      this.panel5.Location = new System.Drawing.Point(10, 50);
      this.panel5.Name = "panel5";
      this.panel5.Size = new System.Drawing.Size(436, 1);
      this.panel5.TabIndex = 8;
      // 
      // label21
      // 
      this.label21.Location = new System.Drawing.Point(80, 22);
      this.label21.Name = "label21";
      this.label21.Size = new System.Drawing.Size(176, 16);
      this.label21.TabIndex = 7;
      this.label21.Text = "学生的获奖纪录";
      // 
      // pictureBox5
      // 
      this.pictureBox5.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox5.Image")));
      this.pictureBox5.Location = new System.Drawing.Point(18, 4);
      this.pictureBox5.Name = "pictureBox5";
      this.pictureBox5.Size = new System.Drawing.Size(48, 40);
      this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
      this.pictureBox5.TabIndex = 6;
      this.pictureBox5.TabStop = false;
      // 
      // tabPage6
      // 
      this.tabPage6.BackColor = System.Drawing.Color.White;
      this.tabPage6.Controls.Add(this.dataGridPunishments);
      this.tabPage6.Controls.Add(this.panel6);
      this.tabPage6.Controls.Add(this.label22);
      this.tabPage6.Controls.Add(this.pictureBox6);
      this.tabPage6.Location = new System.Drawing.Point(4, 21);
      this.tabPage6.Name = "tabPage6";
      this.tabPage6.Size = new System.Drawing.Size(456, 247);
      this.tabPage6.TabIndex = 5;
      this.tabPage6.Text = "处分纪录";
      // 
      // dataGridPunishments
      // 
      this.dataGridPunishments.CaptionVisible = false;
      this.dataGridPunishments.DataMember = "Punishments";
      this.dataGridPunishments.DataSource = this.dataSetMain;
      this.dataGridPunishments.HeaderForeColor = System.Drawing.SystemColors.ControlText;
      this.dataGridPunishments.Location = new System.Drawing.Point(10, 56);
      this.dataGridPunishments.Name = "dataGridPunishments";
      this.dataGridPunishments.ReadOnly = true;
      this.dataGridPunishments.Size = new System.Drawing.Size(438, 184);
      this.dataGridPunishments.TabIndex = 11;
      this.dataGridPunishments.TableStyles.AddRange(new System.Windows.Forms.DataGridTableStyle[] {
                                                                                                    this.dataGridTableStyle3});
      // 
      // dataGridTableStyle3
      // 
      this.dataGridTableStyle3.DataGrid = this.dataGridPunishments;
      this.dataGridTableStyle3.GridColumnStyles.AddRange(new System.Windows.Forms.DataGridColumnStyle[] {
                                                                                                          this.dataGridTextBoxColumn7,
                                                                                                          this.dataGridTextBoxColumn8,
                                                                                                          this.dataGridTextBoxColumn9});
      this.dataGridTableStyle3.HeaderForeColor = System.Drawing.SystemColors.ControlText;
      this.dataGridTableStyle3.MappingName = "Punishments";
      // 
      // dataGridTextBoxColumn7
      // 
      this.dataGridTextBoxColumn7.Format = "";
      this.dataGridTextBoxColumn7.FormatInfo = null;
      this.dataGridTextBoxColumn7.HeaderText = "处分类型";
      this.dataGridTextBoxColumn7.MappingName = "punishmentType_name";
      this.dataGridTextBoxColumn7.Width = 75;
      // 
      // dataGridTextBoxColumn8
      // 
      this.dataGridTextBoxColumn8.Format = "";
      this.dataGridTextBoxColumn8.FormatInfo = null;
      this.dataGridTextBoxColumn8.HeaderText = "处分原因";
      this.dataGridTextBoxColumn8.MappingName = "punishment_reason";
      this.dataGridTextBoxColumn8.Width = 150;
      // 
      // dataGridTextBoxColumn9
      // 
      this.dataGridTextBoxColumn9.Format = "";
      this.dataGridTextBoxColumn9.FormatInfo = null;
      this.dataGridTextBoxColumn9.HeaderText = "处分日期";
      this.dataGridTextBoxColumn9.MappingName = "punishment_date";
      this.dataGridTextBoxColumn9.Width = 75;
      // 
      // panel6
      // 
      this.panel6.BackColor = System.Drawing.SystemColors.GrayText;
      this.panel6.Location = new System.Drawing.Point(10, 50);
      this.panel6.Name = "panel6";
      this.panel6.Size = new System.Drawing.Size(436, 1);
      this.panel6.TabIndex = 8;
      // 
      // label22
      // 
      this.label22.Location = new System.Drawing.Point(80, 22);
      this.label22.Name = "label22";
      this.label22.Size = new System.Drawing.Size(192, 16);
      this.label22.TabIndex = 7;
      this.label22.Text = "学生的处分纪录";
      // 
      // pictureBox6
      // 
      this.pictureBox6.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox6.Image")));
      this.pictureBox6.Location = new System.Drawing.Point(18, 4);
      this.pictureBox6.Name = "pictureBox6";
      this.pictureBox6.Size = new System.Drawing.Size(48, 40);
      this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
      this.pictureBox6.TabIndex = 6;
      this.pictureBox6.TabStop = false;
      // 
      // btnEdit
      // 
      this.btnEdit.DialogResult = System.Windows.Forms.DialogResult.Cancel;
      this.btnEdit.Location = new System.Drawing.Point(397, 292);
      this.btnEdit.Name = "btnEdit";
      this.btnEdit.Size = new System.Drawing.Size(75, 24);
      this.btnEdit.TabIndex = 4;
      this.btnEdit.Text = "编辑";
      this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
      // 
      // btnSubmit
      // 
      this.btnSubmit.Location = new System.Drawing.Point(309, 292);
      this.btnSubmit.Name = "btnSubmit";
      this.btnSubmit.Size = new System.Drawing.Size(75, 24);
      this.btnSubmit.TabIndex = 3;
      this.btnSubmit.Text = "确定";
      this.btnSubmit.Click += new System.EventHandler(this.btnSubmit_Click);
      // 
      // FormProperty
      // 
      this.AcceptButton = this.btnSubmit;
      this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
      this.ClientSize = new System.Drawing.Size(480, 326);
      this.Controls.Add(this.btnEdit);
      this.Controls.Add(this.btnSubmit);
      this.Controls.Add(this.tabControl1);
      this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
      this.HelpButton = true;
      this.MaximizeBox = false;
      this.MinimizeBox = false;
      this.Name = "FormProperty";
      this.ShowInTaskbar = false;
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
      this.Text = "属性";
      this.Closed += new System.EventHandler(this.FormProperty_Closed);
      this.tabControl1.ResumeLayout(false);
      this.tabPage1.ResumeLayout(false);
      this.tabPage2.ResumeLayout(false);
      this.tabPage3.ResumeLayout(false);
      this.tabPage4.ResumeLayout(false);
      ((System.ComponentModel.ISupportInitialize)(this.dataGridChanges)).EndInit();
      ((System.ComponentModel.ISupportInitialize)(this.dataSetMain)).EndInit();
      ((System.ComponentModel.ISupportInitialize)(this.dataTable1)).EndInit();
      ((System.ComponentModel.ISupportInitialize)(this.dataTable2)).EndInit();
      ((System.ComponentModel.ISupportInitialize)(this.dataTable3)).EndInit();
      this.tabPage5.ResumeLayout(false);
      ((System.ComponentModel.ISupportInitialize)(this.dataGridAwards)).EndInit();
      this.tabPage6.ResumeLayout(false);
      ((System.ComponentModel.ISupportInitialize)(this.dataGridPunishments)).EndInit();
      this.ResumeLayout(false);

    }
		#endregion

    private void btnSubmit_Click(object sender, System.EventArgs e)
    {
      this.DialogResult = DialogResult.OK;
      this.Close();
      this.Dispose();
    }

    private void btnEdit_Click(object sender, System.EventArgs e)
    {
      this.DialogResult = DialogResult.Yes;
      this.Close();
      this.Dispose();
    }

    private void FormProperty_Closed(object sender, System.EventArgs e)
    {
      System.GC.Collect();
    }
	}
}

⌨️ 快捷键说明

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