数据库分库分表策略的具体实现方案
http://blog.csdn.net/xlgen157387/article/details/53976153
全栈工程师指南
http://blog.csdn.net/li295214001/article/details/51483804
> winform c#怎么调用方法,如下:
Form1 调用 Form2的代码,可以利用 委托进行实现,写了一个例子参考一下
//主窗体
public partial class MainForm : Form
{
private Form1 form1 = null;
private Form2 form2 = null;
public MainForm()
{
InitializeComponent();
form1 = new Form1();
form2 = new Form2();
//传递 Form2 的 Fun1 方法 到 Form1 的委托
form1.Function = new Form1.FunctionDelegate(form2.Fun1);
}
private void btnForm1_Click(object sender, EventArgs e)
{
form1.Show();
}
private void btnForm2_Click(object sender, EventArgs e)
{
form2.Show();
}
}
//Form1
public partial class Form1 : Form
{
//定义一个委托类型
//根据需要可以修改是否带参数和返回值
public delegate void FunctionDelegate(string text);
//些委托的值 由 Form2 函数 给出
public FunctionDelegate Function;
public Form1()
{
InitializeComponent();
}
private void btnStart_Click(object sender, EventArgs e)
{
//如果委托不为空时,进行调用
if (Function != null) {
Function("Hello");
}
}
}
//Form2
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
//定义一个由 Form1 调用的方法
//此方法的参数和返回值要和Form2的委托一致
public void Fun1(string text)
{
label1.Text = text;
}
}
C#如何实现双击listview中的行,在另一个窗体中的textbox中显示这一行的数据
主要是窗体之间的值传递
Form1.cs中,增加ListView的事件处理
private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
{
string str = listBox1.SelectedItem.ToString();
Form2 f = new Form2();
f.SetText(str);
f.Show();
}
Form2.cs中,定义SetText方法
public void SetText(string str)
{
textBox1.Text = str;
}
2014年DevExpress使用教程合集
https://my.oschina.net/u/1163318/blog/362638如下是清单:
DevExpress系列教程
DevExpress Universal Subscription是DevExpress旗下重要的用户界面控件,也是全球使用最多的.NET用户界面控件套包。自2014年以来,慧都小编为大家奉献了很多使用教程。如果你详细阅读了以下教程,相信会对你起到非常大的帮助:
DevExpress使用心得一:换肤
DevExpress使用心得二:界面设计(1)
DevExpress使用心得三:界面设计(2)
DevExpress使用心得四:在GridView中加载动态图片
DevExpress使用心得五:Treelist拖拽节点
DevExpress使用心得六:自定义TreeList单元格
DevExpress使用心得七:为图表创建动态数据源
DevExpress使用心得八:用DevExpress制作水晶报表
DevExpress使用教程:富文本编辑器RichEditControl
DevExpress使用教程:使用ChartControl绘制多重坐标图形
DevExpress使用教程:GridView经验小结
DevExpress使用教程:Form窗体经验小结
DevExpress使用教程:向GridControl添加进度条控件
DevExpress使用教程:常用Winform界面封装
DevExpress使用教程:XtraGrid常见用法
DevExpress使用教程:PopupMenu使用心得
DevExpress使用教程:窗体换肤
DevExpress使用教程:Gridview下拉框
DevExpress使用教程:添加非绑定列
DevExpress使用教程:XtraGridControl动态添加右键菜单
DevExpress Dashboard for .NET
DevExpress Dashboard是一个非常实用的商业工具,提供了灵活的、交互式的、完全定制化的用户体验,并且经过了实时数据压缩和分析优化,它还配备了8种动态的仪表盘UI元素和2种静态演示项目。也是DevExpress去年发布的新产品之一。以下教程可以对这款工具有一个初步的认识:
DevExpress Dashboard入门教程一:运行时修改默认本地化资源
DevExpress Dashboard入门教程二:创建Web Viewer应用程序
DevExpress Dashboard入门教程三:绘制Ribbon UI
DevExpress Dashboard入门教程四:自定义连接设置
DevExpress Dashboard入门教程五:创建仪表盘参数
DevExpress Dashboard入门教程六:仪表盘控件绑定到数据库
其他
除此之外,本年度还发布了一些新的入门教程,如DevExpress GridControl和DevExpress GridView等等:
DevExpress GridView使用教程:列表中显示该记录是否包含附件
DevExpress GridControl使用教程:拖拽DragDrop操作
DevExpress GridControl使用教程:添加checkbox复选框
DevExpress GridControl使用教程:打印详解
DevExpress GridView使用教程:列表中显示该记录是否包含附件
SQL Server 2008 R2 简体中文版(64位)
http://www.newasp.net/soft/30867.html
SQL_Server_2008安装教程_图解
http://shaojiang216.blog.163.com/blog/static/13132582420136207638154/
Jquery 点击按钮显示和隐藏层的代码
代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript" src="../Javascript/jquery-1.6.js"></script>
<style type="text/css">
#choice_list_district{ height:50px;}
#tab td{cursor:pointer;}
</style>
<script type="text/javascript">
$(function () {
//绑定事件处理
$("#choice_list_district a").click(function (e) {
if ($("#divObj").css("display") == "none") {
e.stopPropagation();
//设置弹出层位置
var offset = $(e.target).offset();
//设置弹出层位置在点击的下面
$("#divObj").css({ top: offset.top + $(e.target).height() + "px", left: offset.left });
$("#divObj").show();
}
else {
$("#divObj").hide();
}
});
//单击空白区域隐藏弹出层
$(document).click(function (event) { $("#divObj").hide(); });
//单击弹出层则自身隐藏
//$("#divObj").click(function (event) { $("#divObj").hide(speed) });
$("#tab tr td").click(function (event) {
$("#aaa").val($(this).html());
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="choice_list_district">
<a href="#">出来层</a>
</div><div id="divObj" style="position: absolute; width:200px; height:200px; background:blue; border:1px solid block; display:none; z-index:9999;">
<table id="tab">
<tr>
<td>aaa</td>
</tr>
<tr>
<td>bbb</td>
</tr>
</table>
</div>
<div style="position:absolute; top:200px; left:200px;">
<input type="text" id="aaa" />
</div>
</div>
</form>
</body>
</html>