Loading

摘要: 1.前端代码 @{ Layout = null; } <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width" /> <link href="~/Content/layui/css/layui.c 阅读全文
posted @ 2021-04-27 16:44 云辰 阅读(2632) 评论(0) 推荐(0)
摘要: 1.新建MyModule.cs继承IHttpModule,实现BeginRequest事件。 public class MyModule:IHttpModule { public void Init(HttpApplication context) { context.BeginRequest += 阅读全文
posted @ 2021-04-21 10:19 云辰 阅读(89) 评论(0) 推荐(0)
摘要: 1.以dba管理员登录 sqlplus / as sysdba 2.查看密码策略 SQL> select * from dba_profiles where resource_NAME='PASSWORD_VERIFY_FUNCTION'; 3.登录PL/SQL,以sysdba方式登录,密码输入默认 阅读全文
posted @ 2021-04-08 16:12 云辰 阅读(2712) 评论(0) 推荐(0)
摘要: 1.在Program.cs文件类新增如下方法: 1 public static class Program 2 { 3 public static GlobalControl gc = new GlobalControl(); //存储全局变量类 4 5 /// <summary> 6 /// 应用 阅读全文
posted @ 2020-10-30 17:31 云辰 阅读(165) 评论(0) 推荐(0)
摘要: 自定义设置属性窗口: public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); } public Image PicImage { get => pictureBo 阅读全文
posted @ 2020-10-30 17:13 云辰 阅读(232) 评论(0) 推荐(0)
摘要: 测试单元代码: 使用了Mock框架,得提前导入Moq程序包,使用Nuget搜索 using Moq; namespace UnitTestProject1.test { [TestClass] public class UnitTest1 { [TestMethod] public void Tes 阅读全文
posted @ 2020-10-27 17:01 云辰 阅读(394) 评论(0) 推荐(0)
摘要: string str = "1,2,3,4,5,6,7"; string[] strArray = str.Split(','); //字符串转数组 str = string.Empty; str = string.Join(",", strArray);//数组转成字符串 阅读全文
posted @ 2020-10-15 09:44 云辰 阅读(1878) 评论(0) 推荐(0)
摘要: Copy empty string using Clipboard.SetText(string) Clipboard.SetText("")引发错误-"值不能为空"。 那么如何使用Clipboard.SetText复制空字符串? 我已经完成了Clipboard.Clear()。 它确实清除了剪贴板 阅读全文
posted @ 2020-10-15 09:42 云辰 阅读(816) 评论(0) 推荐(0)
摘要: private void BtnGpsExportAll_Click(object sender, EventArgs e) { if (backgroundWorker1.IsBusy) { MessageDxUtil.ShowTips("正在执行轨迹导出,请稍后在尝试!"); return; } 阅读全文
posted @ 2020-10-14 14:53 云辰 阅读(171) 评论(0) 推荐(0)
摘要: #region [DateTimePicker控件加入ToolStripControl] /// <summary> /// 添加DateTimePicker方法 /// </summary> /// <param name="n">传入需要添加的位置参数</param> private void 阅读全文
posted @ 2020-10-14 14:34 云辰 阅读(166) 评论(0) 推荐(0)