摘要: 部分情况下弹出的层(图片)dialog弹框会不显示,一片白色 正常情况是这样的 异常情况是这样的 调试了一下kindeditor.js文件,发现有个方法自动给弹框dialog定位中间的,x和y(主要是y)变成了130.9999999带小数点的,导致top的class没生效,left是生效了,但是to 阅读全文
posted @ 2022-05-05 20:03 Nemo_Li 阅读(45) 评论(0) 推荐(0) 编辑
摘要: private void listView1_SelectedIndexChanged(object sender, EventArgs e) { foreach(ListViewItem itm in this.listView1.Items) ... 阅读全文
posted @ 2014-06-17 15:22 Nemo_Li 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: public FrmMain() { InitializeComponent(); //窗体显示特效 Opacity = 0.0; //窗体透明度为0 fadeTimer.Start(); //计时开始 } private void fadeTimer_Tick(object sender, EventArgs e) { const double d = 0.10; if (Opacity +... 阅读全文
posted @ 2014-03-20 09:59 Nemo_Li 阅读(236) 评论(0) 推荐(0) 编辑
摘要: [DllImport("user32.dll")] public static extern bool ReleaseCapture(); [DllImport("user32.dll")] public static extern bool SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam); public const int WmSyscommand = 0x0112; public const int ScMove = 0xF010; ... 阅读全文
posted @ 2014-03-20 09:58 Nemo_Li 阅读(194) 评论(0) 推荐(0) 编辑
摘要: var jSetting = new JsonSerializerSettings {NullValueHandling = NullValueHandling.Ignore};var json = JsonConvert.SerializeObject(response, Formatting.Indented, jSetting);之前转换的JSON为:{"header":{"rspCode":"0000","rspDesc":"执行成功","rspErrorMsg":& 阅读全文
posted @ 2014-03-06 09:18 Nemo_Li 阅读(3921) 评论(1) 推荐(2) 编辑
摘要: 加入try catch来判断,catch使用的WebException来处理try{ var request = WebRequest.Create(uri); using (var response = request.GetResponse()) { using (var responseStream = response.GetResponseStream()) { // Process the stream } }}catch (WebException ex){ if (ex.Status ... 阅读全文
posted @ 2013-12-03 10:19 Nemo_Li 阅读(2379) 评论(0) 推荐(0) 编辑
摘要: /// /// 提供用于计算指定文件哈希值的方法 /// 例如计算文件的MD5值: /// /// String hashMd5=HashHelper.ComputeMD5("MyFile.txt"); /// /// /// 例如计算文件的CRC32值: /// /// String hashCrc32 = HashHelper.ComputeCRC32("MyFile.txt"); /// /// /// 例如计算文件的SHA1值: /// /// String hashSha1 =HashHelper.ComputeSHA1("My... 阅读全文
posted @ 2013-11-08 14:13 Nemo_Li 阅读(10771) 评论(0) 推荐(1) 编辑
摘要: 之前为了这事,百度了一天也没找到,最终使用了静态变量了。窗体Form1:private void button1_Click(object sender, EventArgs e) { var form2=new Form2(textBox1.Text); form2.Show(); }窗体Form2:private readonly string _msg; public Form2(string msg) { InitializeComponent(); ... 阅读全文
posted @ 2013-10-28 16:25 Nemo_Li 阅读(750) 评论(10) 推荐(0) 编辑
摘要: 贴部分代码using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.Text;using ORM;using System.ServiceModel.Activation;namespace WcfService{ // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码、svc 和配置文件中的类名“CategoryService”。 [AspNetComp... 阅读全文
posted @ 2013-05-03 14:39 Nemo_Li 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-04-20 01:13 Nemo_Li 阅读(172) 评论(0) 推荐(0) 编辑