辉_妞

 

2013年8月9日

搜索引擎

摘要: 开发者必备的6款源码搜索引擎投递人itwriter发布于 2013-08-08 13:57评论(8)有526人阅读原文链接[收藏]«» 英文原文:Open Source Matters: 6 Source Code Search Engines You Can Use For Programming Projects 在推动技术变革上,开源运动发挥了非常显著的作用。而 Linux 成功地将开源转换成商务模式,给广大开源工作者带来了更大的信心和勇气。目前,开源已成为主流,在未来的几年内,它的足迹将会遍布前沿教育、航空航天(如无人驾驶飞机)等许多领域。 借鉴现有的开源项目或开源 阅读全文

posted @ 2013-08-09 10:04 辉_妞 阅读(250) 评论(0) 推荐(0) 编辑

2012年10月17日

C#中 DataGridView控件的各种操作总结(单元格操作,属性设置)

摘要: 一、单元格内容的操作*****// 取得当前单元格内容Console.WriteLine(DataGridView1.CurrentCell.Value); // 取得当前单元格的列 Index Console.WriteLine(DataGridView1.CurrentCell.ColumnIndex); // 取得当前单元格的行 Index Console.WriteLine(DataGridView1.CurrentCell.RowIndex);*******另外,使用 DataGridView.CurrentCellAddress 属性(而不是直接访问单元格)来确定单元格所在的行:D 阅读全文

posted @ 2012-10-17 17:30 辉_妞 阅读(1879) 评论(0) 推荐(0) 编辑

2012年10月13日

datagridview使用tooltip控件

摘要: datagridview使用tooltip控件显示单元格内容且不闪之前把显示tooltip显示的事件写在GrvMessage_CellMouseMove里面导致一直在闪后改在GrvMessage_CellMouseEnter里就不闪了private int cellColumnIndex = -1, cellRowIndex = -1; public ShowMassage() { InitializeComponent(); this.GrvMessage.ShowCellToolTips = false; this.toolTip.AutomaticDelay = 0; this.tool 阅读全文

posted @ 2012-10-13 14:47 辉_妞 阅读(368) 评论(0) 推荐(0) 编辑

2012年9月13日

遍历制定文件夹

摘要: C#遍历指定文件夹中的所有文件 DirectoryInfo TheFolder=new DirectoryInfo(folderFullName);//遍历文件夹foreach(DirectoryInfo NextFolder in TheFolder.GetDirectories()) this.listBox1.Items.Add(NextFolder.Name);//遍历文件foreach(FileInfo NextFile in TheFolder.GetFiles()) this.listBox2.Items.Add(NextFile.Name); ================= 阅读全文

posted @ 2012-09-13 16:01 辉_妞 阅读(101) 评论(0) 推荐(0) 编辑

File操作

摘要: 1.创建文件夹//using System.IO;Directory.CreateDirectory(%%1);2.创建文件//using System.IO;File.Create(%%1);3.删除文件//using System.IO;File.Delete(%%1);4.删除文件夹//using System.IO;Directory.Delete(%%1);5.删除一个目录下所有的文件夹//using System.IO;foreach (string dirStr in Directory.GetDirectories(%%1)){DirectoryInfo dir = new D 阅读全文

posted @ 2012-09-13 15:50 辉_妞 阅读(1544) 评论(0) 推荐(0) 编辑

2012年8月28日

Revit 快捷键及类别显示

摘要: 类别显示: //找到类型的方法,这里找到文字注释类型 Categories cates = doc.Settings.Categories; Category cate = cates.get_Item(BuiltInCategory.OST_TextNotes); //设置类型可见性 doc.ActiveView.setVisibility(cate, false);快捷键: "MD" menu:"编辑-修改"; "" menu:"编辑-上次选择" "SA" menu:"编辑-选择全 阅读全文

posted @ 2012-08-28 10:13 辉_妞 阅读(1518) 评论(0) 推荐(0) 编辑

2012年8月27日

DataGirdView 光标锁定单元格

摘要: try { this.dg_Trans.EndEdit(); if (e.RowIndex == -1) return; if (e.RowIndex < 0 || e.ColumnIndex < 0) return; if (e.ColumnIndex != 3) { DataSet dsItem = new DataSet(); DataAccess.DAFittings Fitting = new DataAccess.DAFittings(); if (this.dg_Trans.Rows[e.RowIndex].Cells[3].Value != null) { dsIt 阅读全文

posted @ 2012-08-27 11:19 辉_妞 阅读(173) 评论(0) 推荐(0) 编辑

2012年7月18日

DataGrideView控件

摘要: DataGridView使用方法目录: 1、 取得或者修改当前单元格的内容 2、 设定单元格只读 3、 不显示最下面的新行 4、 判断新增行 5、 行的用户删除操作的自定义 6、 行、列的隐藏和删除 7、 禁止列或者行的Resize 8、 列宽和行高以及列头的高度和行头的宽度的自动调整 9、 冻结列或行 10、 列顺序的调整 11、 行头列头的单元格 12、 剪切板的操作 13、 单元格的ToolTip的设置 14、 右键菜单(ContextMenuStrip)的设置 15、 单元格的边框、 网格线样式的设定 16、 单元格表示值的设定 17、 用户输入时,单元格输入值的设定 18、 设定新加 阅读全文

posted @ 2012-07-18 17:25 辉_妞 阅读(645) 评论(0) 推荐(0) 编辑

2012年5月21日

XML查询,没有则创建

摘要: if (File.Exists(xmlPath + "\\" + xmlName)) //判断文件是否寸在 { //存在的情况下 XmlDocument xmldoc = new XmlDocument(); xmldoc.Load(xmlPath + "\\" + xmlName); //存在文件 XmlNode root = xmldoc.SelectSingleNode("History"); XmlElement bak = xmldoc.CreateElement("Bak"); root.AppendC 阅读全文

posted @ 2012-05-21 10:06 辉_妞 阅读(139) 评论(0) 推荐(0) 编辑

XML文件删除

摘要: //将文件路径赋予字符串xmlFilePathstring xmlFilePath = @"D:\XmlFolder\123.xml";//判断文件是否存在if(File.Exists(xmlFilePath)){ File.Delete(xmlFilePath);}else{ //文件不存在,用对话框向用户提示此信息 MessageBox.Show("文件"+xmlFilePah+"不存在,请确定该文件正确路径!");} 阅读全文

posted @ 2012-05-21 09:37 辉_妞 阅读(297) 评论(0) 推荐(0) 编辑

导航