码迷,mamicode.com
首页 >  
搜索关键字:protected    ( 5716个结果
GridView移除(隐藏)行
前台相关代码: ' Text="移除" /> '/> 为GridView添加OnRowCommand事件,事件名称为gridViewCPImportPercent_RowCommand,后台代码: protected void gridViewCPImportPercent_RowCommand(object sender, Gr...
分类:其他好文   时间:2014-09-16 19:02:50    阅读次数:175
GridView添加序号列
在GridView控件第0列添加序号列: 为GridView添加OnRowDataBound事件,事件名称为gridViewCPImportPercent_RowDataBound,代码如下: protected void gridViewCPImportPercent_RowDataBound(object sender, GridViewRowEventArgs ...
分类:其他好文   时间:2014-09-16 19:02:11    阅读次数:212
《Netty权威指南》私有协议开发的可运行源代码分享
之前看了《Netty权威指南》一书,第14章用整个章节介绍了如何设计和实现一个简单的私有协议,内容很好,但是作者提供的代码片段有很多错误,根本不可能正确编译。 比如MarshallingEncoder这个类是Netty提供了JBoss Marshalling的一个适配类,它的encode方法是protected,不是public,并且其中用到的ChannelBufferByteOutput类是...
分类:Web程序   时间:2014-09-16 16:01:41    阅读次数:294
Reentrant protected mode kernel using virtual 8086 mode interrupt service routines
A method for allowing a protected mode kernel to service, in virtual 8086 mode, hardware interrupts which occur during execution of ring 0 protected m...
分类:其他好文   时间:2014-09-16 10:28:10    阅读次数:409
点击Textbox 给日历控件赋值
1、前台代码: View Code2、后台代码:protected void Calendar1_SelectionChanged(object sender, EventArgs e) { TextBox1.Text = Calendar1.Sel...
分类:其他好文   时间:2014-09-16 00:14:09    阅读次数:344
WndPric的使用方法
protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; const int SC_CLOSE = 0xF060; if (m.Msg == WM_SYSCOMMAND...
分类:其他好文   时间:2014-09-14 23:35:17    阅读次数:264
成员变量声明类型注意:
@public : 在任何地方都能直接访问对象的成员变量@private : 只能在当前类的对象方法中直接访问(@implementation中默认是@private,即使声明为@public,若处在单独文件中也是@private)@protected : 可以在当前类及其子类的对象方法中直接访问....
分类:其他好文   时间:2014-09-14 23:21:17    阅读次数:255
获取Android版本信息和程序版本号
public class MainActivity extends ActionBarActivity { private TextView mTextView; @Override protected void onCreate(Bundle savedInstanceStat...
分类:移动开发   时间:2014-09-14 16:40:57    阅读次数:211
parent children
class parent{ protected static int count=0; public parent() { count++; }}public class child extends paren...
分类:其他好文   时间:2014-09-14 16:33:57    阅读次数:145
关于View的MeasureSpec说明
一般来说,自定义控件都会去重写View的onMeasure方法,因为该方法指定该控件在屏幕上的大小。protected voidonMeasure(int widthMeasureSpec, int heightMeasureSpec)onMeasure传入的两个参数是由上一层控件传入的大小,有多种...
分类:其他好文   时间:2014-09-14 11:18:26    阅读次数:130
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!