随笔分类 - C# 笔记
摘要:原帖地址:https://www.cnblogs.com/soundcode/p/6227739.html 比如我现在有一个Student的对象,里面有属性stuName,stuAge,stuGender,我现在该怎么写循环才能遍历这几个属性?
阅读全文
摘要:原文:http://blog.csdn.net/sanjiawan/article/details/6785394 前几天打算尝试下DataGrid的用法,起初以为应该很简单,可后来被各种使用方法和功能实现所折磨。网络上的解决方法太多,但也太杂。没法子,我只好硬着头皮阅览各种文献资料,然后不断的去尝
阅读全文
摘要:原文:http://www.jb51.net/article/47120.htm a.在.xaml文件中拖入一个datagrid,然后添加列名,使用Binding="{Binding 数据库中的列名称}",如下: b.首先把要显示的数据查询后放入datatable中 c.然后在后台代码编辑处将dat
阅读全文
摘要:WPF使用哪几种元素作为顶级元素: 1. Window元素 2. Page元素(与Window元素类似,用于可导航的应用程序) 3. Application元素(定义应用程序资源和启动设置) PS:在一个WPF应用程序中只能有一个顶级元素 Class是类 xmlns是XML Namespaces的缩
阅读全文
摘要:下个笔记:https://www.cnblogs.com/start-from-scratch/p/13862793.html 一、变量:声明变量的语法:变量类型 变量名; 变量名=值;变量类型 变量名=值; 在使用变量的时候要注意:变量一定要先声明,再赋值,最后使用例子: 变量的特点:1、不能够被
阅读全文
摘要:winform:---------------------------------------------------Button控件:属性:BackColor: 背景颜色BackgroundImage: 设置背景图片BackgroundImagelayout: 背景图片的显示样式Cursor: 鼠...
阅读全文
摘要:没有ref的方法时: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespac...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleA...
阅读全文
摘要:F5运行设置断点,在断点暂停F10 (逐过程)当遇到方法调用时不再进去,直接运行,不进里面调试F11 (逐语句)当遇到方法调用时进去Shift+F11 (跳出)跳出所在方法
阅读全文
摘要:定义方法的语法://Public []括号表示可选,可用可不用[访问修饰符][static]返回值类型 方法名([参数]){ 方法体}注意:方法一般要定义在类中如果方法没有返回值,则返回值类型写void如果方法没有参数,()不能省略方法的调用:如果是静态方法(由static修饰的)则使用 类名...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 临时 8 { 9...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 临时 8 { 9...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace do_while...
阅读全文
摘要:例子:用c#语言写一个1-16 随机数的程序. 逐个输出且不重复 简单双色球号码生成器:: 双色球随机号码生成器(增加自动选号和手动选号 然后和中奖号码进行对比 确定中奖没):
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace 第四个程序 8 ...
阅读全文
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace _01个程序 8...
阅读全文

浙公网安备 33010602011771号