猪冰龙

导航

随笔分类 -  c#

1 2 下一页

C语言函数指针与 c#委托和事件对比
摘要:C语言: 函数指针可以节省部分代码量,写类似具有多态的函数,比如要比较最大值,如果不用函数指针就只能写比较某一类型比如int类型的max函数,这个max无法比较string的大小。函数指针的意义就不多说了。 执行结果: C语言代码: 1 #include <stdio.h> 2 void subfu 阅读全文

posted @ 2018-08-13 10:26 猪冰龙 阅读(511) 评论(0) 推荐(0)

软件推荐-c#绘图插件echart
摘要:首先给出官网:http://echarts.baidu.com/examples/ 简单的教程:http://www.cnblogs.com/youmeng/p/4874897.html 阅读全文

posted @ 2018-03-30 20:25 猪冰龙 阅读(1211) 评论(0) 推荐(0)

张奎师弟参与devexpress chartControl绘图--解决了devexpress的chartControl控件不能添加系列的问题
摘要:1 using DevExpress.XtraCharts; 2 using System; 3 using System.Collections.Generic; 4 using System.ComponentModel; 5 using System.Data; 6 using System. 阅读全文

posted @ 2018-03-04 17:13 猪冰龙 阅读(1466) 评论(0) 推荐(0)

学习devexpresschartControl控件
摘要:devexpress官网chart:https://documentation.devexpress.com/WindowsForms/8117/Controls-and-Libraries/Chart-Control https://documentation.devexpress.com/Win 阅读全文

posted @ 2018-02-05 19:02 猪冰龙 阅读(3005) 评论(0) 推荐(0)

vs2013查看代码性能后删除保存的性能查看文件导致再打开提示未找到与约束匹配的导出
摘要:1.关闭VS; 2.删除C:/Users//AppData/Local/Microsoft/VisualStudio/12.0/ComponentModelCache文件夹下所有文件及文件夹; 3.重新打开VS即可。 参考:http://blog.csdn.net/sinat_27305053/ar 阅读全文

posted @ 2018-02-05 14:57 猪冰龙 阅读(198) 评论(0) 推荐(0)

c# devexpress绘图 三角函数
摘要:加标题: 1 using System; 2 using System.Windows.Forms; 3 using DevExpress.XtraCharts; 4 // ... 5 6 namespace SideBySideBar2D { 7 public partial class Form 阅读全文

posted @ 2018-02-02 21:36 猪冰龙 阅读(1935) 评论(0) 推荐(0)

c# richTextBox1添加内容并将滚动条滚动到当前焦点处
摘要:1. StringBuilder sb = new StringBuilder(); StringBuilder的改变比string快多了 2. sb.Append("\r\n"); //向stringbuilder中添加内容 3. richTextBox1output.AppendText(sb. 阅读全文

posted @ 2018-01-29 17:51 猪冰龙 阅读(1364) 评论(0) 推荐(0)

c# 快速排序法并记录数组索引
摘要:在遗传算法中,只需要对适应性函数评分进行排序,没必要对所有的个体也参与排序,因为在适应性函数评分排序是可以纪律下最初的索引,排序后的索引随着元素排序而变动,这样就知道那个评分对应那个个体了: 1 using System; 2 using System.Collections.Generic; 3 阅读全文

posted @ 2018-01-25 15:58 猪冰龙 阅读(1701) 评论(0) 推荐(0)

c# 产生随机数 程序所在路径
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace ConsoleApp 阅读全文

posted @ 2018-01-23 15:25 猪冰龙 阅读(266) 评论(0) 推荐(0)

devexpress 的combobox怎样只能选择不能输入
摘要:我们知道listbox和combobox的区别就是listbox是下拉列表框,只能下拉,不支持在listbox中自定义输入,而combobox是textbox和listbox的合体,被称为组合框。 combobox有时也被用作listbox使用,那如何才能想listbox那样只能选择,不能输入呢,这 阅读全文

posted @ 2018-01-20 15:19 猪冰龙 阅读(2405) 评论(0) 推荐(0)

c#操作xml
摘要:1 ////创建xmldoc的xml文档 2 //XmlDocument xmldoc = new XmlDocument(); 3 ////加入XML的声明段落:<?xmlversion="1.0" encoding="utf-8"?> 4 //XmlDeclaration xmldecl = x 阅读全文

posted @ 2018-01-17 15:55 猪冰龙 阅读(219) 评论(0) 推荐(0)

c# 数据表DataTable给devexpress的gridControl提供数据源
摘要:C# DataTable 详解 参考:https://www.cnblogs.com/Sandon/p/5175829.html http://blog.csdn.net/singgel/article/details/51833116 1 namespace DXApplication1XtraT 阅读全文

posted @ 2018-01-17 15:50 猪冰龙 阅读(5990) 评论(0) 推荐(1)

c#在panel或groupbox中添加窗体,实现点击不同按钮或combox时panel中窗体切换,在xtratabcontrol中添加窗体
摘要:参考panel添加窗体: http://blog.csdn.net/illegalname/article/details/65444249 http://blog.csdn.net/Eastmount/article/details/21461275 1 using System; 2 using 阅读全文

posted @ 2018-01-16 14:39 猪冰龙 阅读(1081) 评论(0) 推荐(0)

c# 得到list符合某条件的索引值,排序
摘要:请教,在List集合中怎么得到元素的索引值,参考:http://www.myexception.cn/c-sharp/385022.html 这个可以用来读取窗口的多个textbox控件中内容: 1 解决方案 2 你可以使用FindIndex方法 3 C# code 4 private void F 阅读全文

posted @ 2018-01-15 13:47 猪冰龙 阅读(2497) 评论(0) 推荐(0)

c#中数组array和list在函数间传递 转置
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ConsoleApplication2 7 { 8 class Program 9 阅读全文

posted @ 2018-01-14 23:40 猪冰龙 阅读(1229) 评论(0) 推荐(0)

c# 二维list排序和计时
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Diagnostics; 4 using System.Linq; 5 using System.Text; 6 using System.Threading; 7 阅读全文

posted @ 2018-01-14 20:44 猪冰龙 阅读(2413) 评论(0) 推荐(0)

c# devexpress 多个窗口
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 阅读全文

posted @ 2018-01-14 16:47 猪冰龙 阅读(3139) 评论(0) 推荐(0)

c#委托与事件2
摘要:首先是一个关机器的一般方法: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace DelegateDemo 7 { 8 class Pr 阅读全文

posted @ 2018-01-01 17:22 猪冰龙 阅读(199) 评论(0) 推荐(0)

c#中委托与事件
摘要:参考:http://www.tracefact.net/tech/009.html 张子阳:http://www.cnblogs.com/JimmyZhang/archive/2007/09/23/903360.html#3859414 分分钟用上事件和委托:https://www.cnblogs. 阅读全文

posted @ 2017-12-30 17:28 猪冰龙 阅读(132) 评论(0) 推荐(0)

c#利用循环将类实例化为对象
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace array1 7 { 8 public class student 9 { 10 p 阅读全文

posted @ 2017-12-27 22:58 猪冰龙 阅读(796) 评论(0) 推荐(0)

1 2 下一页