随笔分类 -  c#

摘要:insert into {14}.SEGMENT(CODE_STARTPOINTID,CODE_STARTFIR,CODE_TYPE_START,CODE_ENDPOINTID,CODE_ENDFIR,CODE_TYPE_ENDPOINT,CODE_TYPE ,VAL_... 阅读全文
posted @ 2015-07-03 16:17 忆如梨花 阅读(433) 评论(0) 推荐(0)
摘要:被反射类中: public delegate void CompeletedHandler(); public static event CompeletedHandler AnalysisCompeleted; static void BasePath_AnalysisCompel... 阅读全文
posted @ 2014-09-17 11:32 忆如梨花 阅读(718) 评论(0) 推荐(0)
摘要:public static HttpWebResponse CreatePostHttpResponse(string url, IDictionary parameters, string userAgent, Encoding requestEncoding) { if (string.IsNullOrEmpty(url)) { throw new ArgumentNullException("url"); } if (requestEncoding == ... 阅读全文
posted @ 2013-12-16 14:21 忆如梨花 阅读(689) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/fqyz/archive/2013/02/20/2918550.html 阅读全文
posted @ 2013-09-06 13:59 忆如梨花 阅读(145) 评论(0) 推荐(0)
摘要:在SQL里面执行vacuum即可! 阅读全文
posted @ 2013-07-12 13:07 忆如梨花 阅读(690) 评论(0) 推荐(0)
摘要:ListViewItem lvi = listView1.Items[1]; lvi.UseItemStyleForSubItems = false; System.Windows.Forms.ListViewItem.ListViewSubItem lvsi = lvi.SubItems[1]; lvsi.BackColor = Color.Red; 阅读全文
posted @ 2013-06-17 15:33 忆如梨花 阅读(1312) 评论(0) 推荐(1)
摘要:Bar bar = new Bar(); barManager2.Bars.Add(bar); for (int i = 0; i < menus.Count; i++) { BarSubItem subitem=new BarSubItem(); subitem.Caption=menus[i].Name; subitem.Name=menus[i].Identifier; subitem.Id = barManager2.Items.Count + 1; ; subitem.Visibility = BarItemVisibility.Always; barManager2.Item 阅读全文
posted @ 2013-06-03 17:12 忆如梨花 阅读(698) 评论(0) 推荐(0)
摘要:insert into DEPOSITORY (id, name, Createtime, Createuser, Ismodified, Modifytype, ischecked, Remarks)values (6, 'aaa',sysdate,//sysdate即为数据库时间 'bbb', 1, 0, 0, '') 阅读全文
posted @ 2013-05-22 15:13 忆如梨花 阅读(466) 评论(0) 推荐(0)
摘要:string sql = "update systemperiod set start_date=to_date('" + time + "','yyyy-mm-dd hh24:mi:ss') where id =" + this.ID; 阅读全文
posted @ 2013-05-22 15:12 忆如梨花 阅读(427) 评论(0) 推荐(0)
摘要:DevExpress.XtraGrid.StyleFormatCondition cn; cn = new DevExpress.XtraGrid.StyleFormatCondition(DevExpress.XtraGrid.FormatConditionEnum.Equal, gridView1.Columns["列名"], null, 值, 值, true); cn.Appearance.BackColor = Color.Gray; gridView1.FormatConditions.Add(cn); 阅读全文
posted @ 2013-05-22 14:38 忆如梨花 阅读(1251) 评论(0) 推荐(0)
摘要:默认情况下,RepositoryItemCheckEdit的空值,会显示为灰色选中状态,要想改为白色空状态,需要修改NullStyle属性为Unchecked。 RepositoryItemCheckEdit check = new RepositoryItemCheckEdit(); check.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked; 阅读全文
posted @ 2013-05-21 13:42 忆如梨花 阅读(441) 评论(0) 推荐(0)
摘要:http://www.knowsky.com/541032.html 阅读全文
posted @ 2013-05-17 14:10 忆如梨花 阅读(510) 评论(0) 推荐(0)
摘要:编码:using System.Text; byte[] buffer = Encoding.GetEncoding("utf-8").GetBytes("中国"); string str = ""; foreach (byte b in buffer) str += string.Format("%{0:X}", b);解码: public static string Decode(string str) { string[] strs = str.Split('%'); List<byte 阅读全文
posted @ 2013-04-24 14:52 忆如梨花 阅读(663) 评论(0) 推荐(0)
摘要:<compilation debug="true" /> <webServices> <protocols> <add name="HttpSoap"/> <add name="HttpPost"/> <add name="HttpGet"/> <add name="Documentation"/> </protocols> </webServices> 阅读全文
posted @ 2013-04-17 14:46 忆如梨花 阅读(356) 评论(0) 推荐(0)
摘要:foreach (ChangeETOPSLayerColorName item in Enum.GetValues(typeof(ChangeETOPSLayerColorName))) { comboBoxEdit1.Properties.Items.Add(item); } 阅读全文
posted @ 2013-03-25 14:07 忆如梨花 阅读(152) 评论(0) 推荐(0)
摘要:System.Drawing.Text.InstalledFontCollection fonts = new System.Drawing.Text.InstalledFontCollection(); foreach (System.Drawing.FontFamily family in fonts.Families) { cmbFont.Items.Add(new FFontFamily { FontFamily = family }); } 阅读全文
posted @ 2013-03-25 09:51 忆如梨花 阅读(264) 评论(0) 推荐(0)
摘要:RepositoryItemImageComboBox images1 = new RepositoryItemImageComboBox(); images1.SmallImages = imageCollection1; images1.Items.Add(new ImageComboBoxItem("", 0, 0)); images1.Items.Add(new ImageComboBoxItem("", 1, 1)); images1.TextEditStyle = DevExpress.XtraEditors.Controls.TextEdi 阅读全文
posted @ 2013-03-21 16:20 忆如梨花 阅读(864) 评论(0) 推荐(0)
摘要:http://www.csharpwin.com/csharpspace/9314r9141.shtml 阅读全文
posted @ 2013-03-11 10:32 忆如梨花 阅读(142) 评论(0) 推荐(0)
摘要:StringBuilder builder = new StringBuilder(); builder.Append(c); builder.ToString(); 阅读全文
posted @ 2013-02-18 11:24 忆如梨花 阅读(432) 评论(0) 推荐(0)
摘要:扩展对象的方法:(必须在静态类中)public static bool CompareColor(this Color color,Color compareColor) { if (color.A == compareColor.A && color.R == compareColor.R && color.G == compareColor.G && color.B == compareColor.B) { return true; } else return false; }想要扩展对象的属性就要继承类,然后自己写属性,此对象与继承的对象有 阅读全文
posted @ 2013-02-04 15:56 忆如梨花 阅读(163) 评论(0) 推荐(0)