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

📄 frmmain.cs

📁 实现房产销售的房屋管理 客户管理 并且在客户管理中实现了对预定客户和已购房客户的查询和修改
💻 CS
📖 第 1 页 / 共 3 页
字号:
			this.notifyIcon1.Icon = ((System.Drawing.Icon)(resources.GetObject("notifyIcon1.Icon")));
			this.notifyIcon1.Text = "房地产销售系统";
			this.notifyIcon1.Visible = true;
			this.notifyIcon1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.notifyIcon1_MouseDown);
			this.notifyIcon1.DoubleClick += new System.EventHandler(this.notifyIcon1_DoubleClick);
			// 
			// contextMenu1
			// 
			this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						 this.menuItem20});
			// 
			// menuItem20
			// 
			this.menuItem20.Index = 0;
			this.menuItem20.Text = "退出";
			this.menuItem20.Click += new System.EventHandler(this.menuItem20_Click);
			// 
			// frmMain
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(914, 551);
			this.Controls.Add(this.groupBox1);
			this.Controls.Add(this.panel1);
			this.Controls.Add(this.tbrHouse);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Menu = this.mnuHouse;
			this.Name = "frmMain";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "房地产销售管理系统 ";
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.Closing += new System.ComponentModel.CancelEventHandler(this.frmMain_Closing);
			this.Load += new System.EventHandler(this.frmMain_Load);
			this.panel1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel2)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.statusBarPanel3)).EndInit();
			this.groupBox1.ResumeLayout(false);
			this.panel2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		
		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		[STAThread]
		static void Main() 
		{
			
			Application.Run(new  frmMode());
		}


		private void timer1_Tick(object sender, System.EventArgs e)
		{
			this.statusBarPanel3.Text="当前时间:"+DateTime.Now.ToString();
		}

		private void frmMain_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			DialogResult dr=new DialogResult();
			dr=MessageBox.Show("您确定退出本系统吗?","消息",MessageBoxButtons.OKCancel,MessageBoxIcon.Question);
			if(dr==DialogResult.OK)
			{
				Application.Exit();
			}
			else
				return;
		}

		private void frmMain_Load(object sender, System.EventArgs e)
		{
			this.statusBarPanel1.Text="欢迎使用房地产销售系统ACCP4.0    制作人员:王荣刚  赵谦";
			this.sbrHouse.Panels[1].Text="操作人员"+":"+this.username;
		}
		//退出
		private void menuItem11_Click(object sender, System.EventArgs e)
		{
			DialogResult dr=new DialogResult();
			dr=MessageBox.Show("您确定退出本系统吗?","消息",MessageBoxButtons.OKCancel,MessageBoxIcon.Question);
			if(dr==DialogResult.OK)
			{
				Application.Exit();
			}
			else
				return;
		}

		private void notifyIcon1_DoubleClick(object sender, System.EventArgs e)
		{
			if(this.WindowState==FormWindowState.Minimized)
			{
				this.WindowState=FormWindowState.Normal;
			}
			else
				this.WindowState=FormWindowState.Minimized;
		}

		private void notifyIcon1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			if(e.Button==MouseButtons.Right)
			{
				this.ContextMenu=this.contextMenu1;
			}
			else
				return;
		}

		private void menuItem20_Click(object sender, System.EventArgs e)
		{
			DialogResult dr=new DialogResult();
			dr=MessageBox.Show("您确定退出本系统吗?","消息",MessageBoxButtons.OKCancel,MessageBoxIcon.Question);
			if(dr==DialogResult.OK)
			{
				Application.Exit();
			}
			else
				return;
		}
		//工具栏操作
		private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
		{
			if(e.Button==this.tbrHouse.Buttons[2])
			{
				try
				{

					this.openFileDialog1.ShowDialog();
					if(this.openFileDialog1.FileName!="")
					{
						string path=this.openFileDialog1.FileName;
						this.panel3.BackgroundImage=Image.FromFile(path);
					}
					
				}
				catch(Exception ex)
				{
					MessageBox.Show("图片格式错误");
					throw ex;
				}

			}
			else if(e.Button==this.tbrHouse.Buttons[0])
			{
				frmCompanyMes fc=new frmCompanyMes();
				fc.Show();
			}
			else if(e.Button==this.tbrHouse.Buttons[1])
			{
				frmLP frmlp=new frmLP();
				frmlp.ShowDialog();
			}
			else if(e.Button==this.tbrHouse.Buttons[3])
			{
				frmRegister frm=new frmRegister();
				frm.ShowDialog();
			}
			else if(e.Button==this.tbrHouse.Buttons[4])
			{
			      frmClient frm=new frmClient();
				  frm.ShowDialog();
			}
			else if(e.Button==this.tbrHouse.Buttons[5])
			{
				frmBuyManager frm=new frmBuyManager();
				frm.ShowDialog();
			}
			else
			{
				frmHTBook fb=new frmHTBook();
				fb.Show();
			}
		}
		
		//已售房屋查询
		private void buttonItem1_Click(object sender, System.EventArgs e)
		{
			frmSaleHousesSel fs=new frmSaleHousesSel();
			fs.Show();
		}

		//待售楼房查询
		private void buttonItem2_Click(object sender, System.EventArgs e)
		{
			frmNoSaleHouse fN=new frmNoSaleHouse();
			fN.Show();
		}
        
		//调用系统计算器
		private void buttonItem8_Click(object sender, System.EventArgs e)
		{
			System.Diagnostics.Process.Start("calc.exe");
		}
	   //公司资料
		private void buttonItem3_Click(object sender, System.EventArgs e)
		{
			frmCompanyMes fc=new frmCompanyMes();
			fc.Show();
		}
		//合同管理
		private void buttonItem6_Click(object sender, System.EventArgs e)
		{
			frmHTBook fb=new frmHTBook();
			fb.Show();
		}
		//公司资料
		private void menuItem2_Click(object sender, System.EventArgs e)
		{
			frmCompanyMes fc=new frmCompanyMes();
			fc.Show();
		}

		//合同管理
		private void menuItem6_Click(object sender, System.EventArgs e)
		{
			frmHTBook fb=new frmHTBook();
			fb.Show();
		}
		//购房客户查询
		private void menuItem13_Click(object sender, System.EventArgs e)
		{
			frmBuyHouseClients fbc=new frmBuyHouseClients();
			fbc.Show();
		}
		//购房客户查询
		private void buttonItem7_Click(object sender, System.EventArgs e)
		{
			frmBuyHouseClients fbc=new frmBuyHouseClients();
			fbc.Show();
		}
		//掉合同范本
		private void buttonItem5_Click(object sender, System.EventArgs e)
		{
			System.Diagnostics.Process.Start("winword",Application.StartupPath+@"..\..\..\..\合同\htfb.doc");
		}
		//在线帮助
		private void menuItem18_Click(object sender, System.EventArgs e)
		{
		   System.Diagnostics.Process.Start("iexplore",@"http://127.0.0.1/About/help/SIFEI.htm");
		}
         /// <summary>
         /// 合同范本
         /// </summary>
         /// <param name="sender"></param>
         /// <param name="e"></param>
		private void menuItem5_Click(object sender, System.EventArgs e)
		{
			System.Diagnostics.Process.Start("winword",Application.StartupPath+@"..\..\..\..\合同\htfb.doc");
		}
      /// <summary>
      /// 楼盘信息
      /// </summary>
      /// <param name="sender"></param>
      /// <param name="e"></param>
		private void menuItem3_Click(object sender, System.EventArgs e)
		{
			frmLP frmlp=new frmLP();
			frmlp.ShowDialog();
		}
       /// <summary>
       /// 设置
       /// </summary>
       /// <param name="sender"></param>
       /// <param name="e"></param>
		private void menuItem8_Click(object sender, System.EventArgs e)
		{
			frmSet frmset=new frmSet();
			frmset.ShowDialog();
		}
       /// <summary>
       /// 修改密码
       /// </summary>
       /// <param name="sender"></param>
       /// <param name="e"></param>
		private void menuItem9_Click(object sender, System.EventArgs e)
		{
			frmRework frm=new frmRework();
			frm.ShowDialog();
		}

		private void menuItem14_Click(object sender, System.EventArgs e)
		{
			frmDestine frm=new frmDestine();
			frm.ShowDialog();
		}

		private void menuItem16_Click(object sender, System.EventArgs e)
		{
			frmBuyManager frm=new frmBuyManager();
			frm.ShowDialog();
		}

		private void menuItem19_Click(object sender, System.EventArgs e)
		{
			frmAbout about=new frmAbout();
			about.Show();
		}

		private void buttonItem4_Click(object sender, System.EventArgs e)
		{
			frmLP frmlp=new frmLP();
			frmlp.ShowDialog();
		}

	}
}

⌨️ 快捷键说明

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