全文预览

《C#程序设计》大作业 设备管理系统

上传者:学习一点 |  格式:doc  |  页数:27 |  大小:1262KB

文档介绍
窗体Р tssStatus.Text = "计算器"; //在状态栏中显示操作内容Р }Р private void tsmdate_Click(object sender, EventArgs e)Р {Р frmTime time = new frmTime(); //创建子窗体对象Р time.MdiParent = this; //指定当前窗体为MDI父窗体Р time.Show(); / /打开子窗体Р tssStatus.Text = "万年历"; //在状态栏中显示操作内容Р }Р private void tsmdel_Click(object sender, EventArgs e)Р {Р frmDeletedevice delete = new frmDeletedevice(); //创建子窗体对象Р delete.MdiParent = this; //指定当前窗体为MDI父窗体Р delete.Show(); //打开子窗体Р tssStatus.Text = "设备数据维护"; //在状态栏中显示操作内容Р }Р }Р}Р3.子窗体frmMain.csРusing System;Рusing System.Windows.Forms;Рusing System.Data.SqlClient;Рusing System.Configuration;Р……………………Рnamespace DeviceSystemР{ ……………………Р public ame()Р {Р ponent();Р string cons = ConfigurationManager.ConnectionStrings["DeviceSystem.Properties.Settings.MyDeviceConnectionString"].ConnectionString

收藏

分享

举报
下载此文档