pub.cs
上传用户:toshiba_01
上传日期:2007-06-08
资源大小:306k
文件大小:4k
源码类别:

酒店行业

开发平台:

C#

  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. namespace RoomManage
  7. {
  8. /// <summary>
  9. /// pub 的摘要说明。
  10. /// </summary>
  11. public class pub : System.Windows.Forms.Form
  12. {
  13. protected System.Windows.Forms.Button button1;
  14. protected System.Windows.Forms.GroupBox groupBox1;
  15. protected System.Windows.Forms.GroupBox groupBox2;
  16. protected System.Windows.Forms.PictureBox pictureBox1;
  17. protected System.Windows.Forms.GroupBox groupBox3;
  18. /// <summary>
  19. /// 必需的设计器变量。
  20. /// </summary>
  21. private System.ComponentModel.Container components = null;
  22. public pub()
  23. {
  24. //
  25. // Windows 窗体设计器支持所必需的
  26. //
  27. InitializeComponent();
  28. //
  29. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  30. //
  31. }
  32. /// <summary>
  33. /// 清理所有正在使用的资源。
  34. /// </summary>
  35. protected override void Dispose( bool disposing )
  36. {
  37. if( disposing )
  38. {
  39. if(components != null)
  40. {
  41. components.Dispose();
  42. }
  43. }
  44. base.Dispose( disposing );
  45. }
  46. #region Windows 窗体设计器生成的代码
  47. /// <summary>
  48. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  49. /// 此方法的内容。
  50. /// </summary>
  51. private void InitializeComponent()
  52. {
  53. this.button1 = new System.Windows.Forms.Button();
  54. this.groupBox1 = new System.Windows.Forms.GroupBox();
  55. this.groupBox2 = new System.Windows.Forms.GroupBox();
  56. this.pictureBox1 = new System.Windows.Forms.PictureBox();
  57. this.groupBox3 = new System.Windows.Forms.GroupBox();
  58. this.groupBox1.SuspendLayout();
  59. this.groupBox2.SuspendLayout();
  60. this.SuspendLayout();
  61. // 
  62. // button1
  63. // 
  64. this.button1.Location = new System.Drawing.Point(8, 96);
  65. this.button1.Name = "button1";
  66. this.button1.Size = new System.Drawing.Size(48, 23);
  67. this.button1.TabIndex = 0;
  68. this.button1.Text = "关闭";
  69. this.button1.Click += new System.EventHandler(this.button1_Click);
  70. // 
  71. // groupBox1
  72. // 
  73. this.groupBox1.Controls.Add(this.groupBox2);
  74. this.groupBox1.Controls.Add(this.pictureBox1);
  75. this.groupBox1.Location = new System.Drawing.Point(392, 0);
  76. this.groupBox1.Name = "groupBox1";
  77. this.groupBox1.Size = new System.Drawing.Size(80, 280);
  78. this.groupBox1.TabIndex = 1;
  79. this.groupBox1.TabStop = false;
  80. // 
  81. // groupBox2
  82. // 
  83. this.groupBox2.Controls.Add(this.button1);
  84. this.groupBox2.Location = new System.Drawing.Point(8, 144);
  85. this.groupBox2.Name = "groupBox2";
  86. this.groupBox2.Size = new System.Drawing.Size(64, 128);
  87. this.groupBox2.TabIndex = 2;
  88. this.groupBox2.TabStop = false;
  89. // 
  90. // pictureBox1
  91. // 
  92. this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
  93. this.pictureBox1.Location = new System.Drawing.Point(8, 16);
  94. this.pictureBox1.Name = "pictureBox1";
  95. this.pictureBox1.Size = new System.Drawing.Size(64, 128);
  96. this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
  97. this.pictureBox1.TabIndex = 3;
  98. this.pictureBox1.TabStop = false;
  99. // 
  100. // groupBox3
  101. // 
  102. this.groupBox3.Location = new System.Drawing.Point(0, 0);
  103. this.groupBox3.Name = "groupBox3";
  104. this.groupBox3.Size = new System.Drawing.Size(384, 280);
  105. this.groupBox3.TabIndex = 2;
  106. this.groupBox3.TabStop = false;
  107. // 
  108. // pub
  109. // 
  110. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  111. this.ClientSize = new System.Drawing.Size(480, 302);
  112. this.ControlBox = false;
  113. this.Controls.Add(this.groupBox3);
  114. this.Controls.Add(this.groupBox1);
  115. this.MaximizeBox = false;
  116. this.MaximumSize = new System.Drawing.Size(488, 310);
  117. this.MinimumSize = new System.Drawing.Size(488, 310);
  118. this.Name = "pub";
  119. this.ShowInTaskbar = false;
  120. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
  121. this.TopMost = true;
  122. this.groupBox1.ResumeLayout(false);
  123. this.groupBox2.ResumeLayout(false);
  124. this.ResumeLayout(false);
  125. }
  126. #endregion
  127. private void button1_Click(object sender, System.EventArgs e)
  128. {
  129. if(MessageBox.Show("真的要退出吗?","注意",MessageBoxButtons.OKCancel,MessageBoxIcon.Question)==DialogResult.OK)
  130. this.Close ();
  131. }
  132. }
  133. }