随笔分类 - c#
摘要:insert into {14}.SEGMENT(CODE_STARTPOINTID,CODE_STARTFIR,CODE_TYPE_START,CODE_ENDPOINTID,CODE_ENDFIR,CODE_TYPE_ENDPOINT,CODE_TYPE ,VAL_...
阅读全文
摘要:被反射类中: public delegate void CompeletedHandler(); public static event CompeletedHandler AnalysisCompeleted; static void BasePath_AnalysisCompel...
阅读全文
摘要:public static HttpWebResponse CreatePostHttpResponse(string url, IDictionary parameters, string userAgent, Encoding requestEncoding) { if (string.IsNullOrEmpty(url)) { throw new ArgumentNullException("url"); } if (requestEncoding == ...
阅读全文
摘要:http://www.cnblogs.com/fqyz/archive/2013/02/20/2918550.html
阅读全文
摘要:ListViewItem lvi = listView1.Items[1]; lvi.UseItemStyleForSubItems = false; System.Windows.Forms.ListViewItem.ListViewSubItem lvsi = lvi.SubItems[1]; lvsi.BackColor = Color.Red;
阅读全文
摘要: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
阅读全文
摘要:insert into DEPOSITORY (id, name, Createtime, Createuser, Ismodified, Modifytype, ischecked, Remarks)values (6, 'aaa',sysdate,//sysdate即为数据库时间 'bbb', 1, 0, 0, '')
阅读全文
摘要:string sql = "update systemperiod set start_date=to_date('" + time + "','yyyy-mm-dd hh24:mi:ss') where id =" + this.ID;
阅读全文
摘要: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);
阅读全文
摘要:默认情况下,RepositoryItemCheckEdit的空值,会显示为灰色选中状态,要想改为白色空状态,需要修改NullStyle属性为Unchecked。 RepositoryItemCheckEdit check = new RepositoryItemCheckEdit(); check.NullStyle = DevExpress.XtraEditors.Controls.StyleIndeterminate.Unchecked;
阅读全文
摘要:http://www.knowsky.com/541032.html
阅读全文
摘要:编码: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
阅读全文
摘要:<compilation debug="true" /> <webServices> <protocols> <add name="HttpSoap"/> <add name="HttpPost"/> <add name="HttpGet"/> <add name="Documentation"/> </protocols> </webServices>
阅读全文
摘要:foreach (ChangeETOPSLayerColorName item in Enum.GetValues(typeof(ChangeETOPSLayerColorName))) { comboBoxEdit1.Properties.Items.Add(item); }
阅读全文
摘要: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 }); }
阅读全文
摘要: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
阅读全文
摘要:http://www.csharpwin.com/csharpspace/9314r9141.shtml
阅读全文
摘要:StringBuilder builder = new StringBuilder(); builder.Append(c); builder.ToString();
阅读全文
摘要:扩展对象的方法:(必须在静态类中)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; }想要扩展对象的属性就要继承类,然后自己写属性,此对象与继承的对象有
阅读全文
浙公网安备 33010602011771号