资源简介
VS2017+SQl练手程序VS2017+SQl练手程序VS2017+SQl练手程序VS2017+SQl练手程序VS2017+SQl练手程序VS2017+SQl练手程序VS2017+SQl练手程序
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
namespace admin
{
public partial class mian : DevComponents.DotNetBar.OfficeForm
{
public mian()
{
InitializeComponent();
}
private bool IsOpenTab(string tabName)
{
bool isOpened = false;
foreach (TabItem tab in tabControl1.Tabs)
{
if (tab.Name == tabName.Trim())
{
isOpened = true;
tabControl1.SelectedTab = tab;
break;
}
}
return isOpened;
}
private void tp_MouseDown(object sender MouseEventArgs e)
{
tabControl1.SelectedTab = (TabItem)sender;
if (e.Button == MouseButtons.Right && tabControl1.SelectedTab != null)
{
this.tabControl1.Select();
cms.Show(this.tabControl1 e.X e.Y);
}
}
public void openWindow(Form frm string Name)
{
// DotNetBar里的TabControl控件,然后设置AutoCloseTabsCloseButtonOnTabsVisible两个属性为true
//
DevComponents.DotNetBar.TabItem tp = new DevComponents.DotNetBar.TabItem();
DevComponents.DotNetBar.TabControlPanel tcp = new DevComponents.DotNetBar.TabControlPanel();
tp.MouseDown += new MouseEventHandler(tp_MouseDown);
tcp.Dock = System.Windows.Forms.Dockstyle.Fill;
tcp.Location = new System.Drawing.Point(0 0);
frm.TopLevel = false;
frm.Dock = System.Windows.Forms.Dockstyle.Fill;
frm.FormBorderstyle = FormBorderstyle.None;
frm.Show();
tcp.Controls.Add(frm);
tp.Text = frm.Text;
tp.Name = Name;
if (!IsOpenTab(Name))
{
tcp.TabItem = tp;
tp.AttachedControl = tcp;
tabControl1.Controls.Add(tcp);
tabControl1.Tabs.Add(tp);
tabControl1.SelectedTab = tp;
}
tabControl1.Refresh();
}
private void mian_Load(object sender EventArgs e)
{
}
private void buttonItem14_Click(object sender EventArgs e)
{
user frm = new user();
openWindow(frm frm.Name);
}
private void ribbonControl1_Click(object sender EventArgs e)
{
}
private void buttonItem15_Click(object sender EventArgs e)
{
frmCategory frm = new frmCategory();
openWindow(frm frm.Name);
}
private void buttonItem1_Click(object sender EventArgs e)
{
frmGoods frm = new frmGoods();
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 557056 2017-11-22 10:11 C#三层练手vs2017+sql\.vs\admin\v15\.suo
文件 0 2017-11-01 10:46 C#三层练手vs2017+sql\.vs\admin\v15\Server\sqlite3\db.lock
文件 2584576 2017-11-22 10:11 C#三层练手vs2017+sql\.vs\admin\v15\Server\sqlite3\storage.ide
文件 86061 2017-11-01 10:45 C#三层练手vs2017+sql\.vs\config\applicationhost.config
文件 17478 2017-11-07 16:21 C#三层练手vs2017+sql\admin\admin.csproj
文件 476 2017-11-06 09:38 C#三层练手vs2017+sql\admin\App.config
文件 2158592 2017-11-07 16:23 C#三层练手vs2017+sql\admin\bin\Debug\admin.exe
文件 476 2017-11-07 16:36 C#三层练手vs2017+sql\admin\bin\Debug\admin.exe.config
文件 316928 2017-11-07 16:23 C#三层练手vs2017+sql\admin\bin\Debug\admin.pdb
文件 1474208 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\de\Microsoft.ReportViewer.Common.resources.dll
文件 1437344 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\de\Microsoft.ReportViewer.DataVisualization.resources.dll
文件 29344 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\de\Microsoft.ReportViewer.Design.resources.dll
文件 89760 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\de\Microsoft.ReportViewer.WinForms.resources.dll
文件 5705728 2017-06-30 19:58 C#三层练手vs2017+sql\admin\bin\Debug\DevComponents.DotNetBar2.dll
文件 4088702 2017-06-30 19:57 C#三层练手vs2017+sql\admin\bin\Debug\DevComponents.DotNetBar2.xm
文件 261784 2017-10-09 08:19 C#三层练手vs2017+sql\admin\bin\Debug\EnvDTE.dll
文件 1470112 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\es\Microsoft.ReportViewer.Common.resources.dll
文件 1433248 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\es\Microsoft.ReportViewer.DataVisualization.resources.dll
文件 29344 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\es\Microsoft.ReportViewer.Design.resources.dll
文件 89760 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\es\Microsoft.ReportViewer.WinForms.resources.dll
文件 1482400 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\fr\Microsoft.ReportViewer.Common.resources.dll
文件 1441440 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\fr\Microsoft.ReportViewer.DataVisualization.resources.dll
文件 29344 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\fr\Microsoft.ReportViewer.Design.resources.dll
文件 89760 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\fr\Microsoft.ReportViewer.WinForms.resources.dll
文件 1478304 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\it\Microsoft.ReportViewer.Common.resources.dll
文件 1425056 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\it\Microsoft.ReportViewer.DataVisualization.resources.dll
文件 29344 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\it\Microsoft.ReportViewer.Design.resources.dll
文件 89760 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\it\Microsoft.ReportViewer.WinForms.resources.dll
文件 1494688 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\ja\Microsoft.ReportViewer.Common.resources.dll
文件 1470112 2017-11-04 20:08 C#三层练手vs2017+sql\admin\bin\Debug\ja\Microsoft.ReportViewer.DataVisualization.resources.dll
............此处省略804个文件信息
评论
共有 条评论