码迷,mamicode.com
首页 > Windows程序 > 日排行
LC#9
判断一个整数是否是回文数。回文数是指正序(从左向右)和倒序(从右向左)读都是一样的整数。 ...
分类:Windows程序   时间:2018-09-05 21:38:08    阅读次数:186
LC#7
给定一个 32 位有符号整数,将整数中的数字进行反转。 ...
分类:Windows程序   时间:2018-09-05 21:42:58    阅读次数:198
WPF 中关于 Screen 的问题(主副屏)
WPF 及 Winform 的 PrimaryScreen 不同用法 https://blog.csdn.net/wzhiu/article/details/7187291 WPF: Winform: Show and Maximize WPF window on a specific screen ...
分类:Windows程序   时间:2018-09-05 21:44:32    阅读次数:695
C#ORM中的对象映射
使用Linq.Expressions来动态生成映射方法 1.我们先写个简单的类Test,包含一个ID和Name。 2.需要手工写简单映射代码,暂时不考虑大小写等问题,代码如下。 3.目标就是通过Expressions来自动产生上面2个方法,先定义Set方法的3个参数Test ,name,value( ...
分类:Windows程序   时间:2018-09-05 21:45:49    阅读次数:657
emwin之LISTWHEEL控件之LISTWHEEL_SetPos函数的使用
@2018-09-05 【小记】 LISTWHEEL控件的LISTWHEEL_SetPos函数的使用注意事项: 该函数不能在创建窗口的WM_INIT_DIALOG分支下作为修改LISTWHEEL控件属性时使用或使用无效,应该在调用该LISTWHEEL的创建窗口的顶层函数后使用方能生效,即想要该函数起 ...
分类:Windows程序   时间:2018-09-05 21:47:16    阅读次数:435
Win32编程之静态库编写与使用.动态链接库的编写与使用
Win32编程之静态库编写与使用.动态链接库的编写与使用 一丶什么是静态库.什么是动态链接库. 静态库其实就是解决模块开发的一种解决方案.在以前.我们写代码的时候.每个人都可以独立写一个项目.但是现在不行了.一个项目往往要很多人一起去编写.而其中用到的技术就类似于静态库. 每个人编写自己的东西.最后 ...
分类:Windows程序   时间:2018-09-05 21:49:24    阅读次数:226
升级微服务架构5:API网关
API网关是一个服务器,是系统的唯一入口。从面向对象设计的角度看,它与外观模式类似。API网关封装了系统内部架构,为每个客户端提供一个定制的API。它可能还具有其它职责,如身份验证、监控、负载均衡、缓存、请求分片与管理、静态响应处理。 按照使用场景来说,API网关只要用来给外部应用(PC客户端、移动 ...
分类:Windows程序   时间:2018-09-05 21:51:59    阅读次数:337
Petrozavodsk Winter-2018. Carnegie Mellon U Contest
A 留坑 B 每个2操作等价于把第一个球放到末尾(P-1)然后其他所有球的位置前移一位,用set维护即可 C 留坑 D 1. 把回头边去掉 2. 在八边形上走大于5步的取反向路径 如果成环,不断做上面两个操作一定能消没 E 留坑 F 留坑 G 留坑 H 考虑bins[x]代表二进制被x包含的几个物品 ...
分类:Windows程序   时间:2018-09-05 23:44:35    阅读次数:317
WPF第三方控件,只能输入数字型数据
话不多说,根据最近项目需求,为了减少输入验证等相关代码量,需要此控件 先上效果图 默认样式是这样,自己可以根据需求修改外形,但我更喜欢它自带的简洁版 有人可能会问怎么实现的呢?其实很简单,我们设置它的属性 HideUpDownButtons="True" 就可以了 可能有些地方需要其中的数字靠左显示 ...
分类:Windows程序   时间:2018-09-06 00:12:46    阅读次数:184
C#-基本语法(三)
关键词 关键字,是一些被C#规定了用途的重要单词 在Visual Studio的开发环境中,关键字被标识为蓝色 例如: using:导入命名空间 class:声明类 static:静态 void:无返回值 string:字符串类型 注释 注释,是代码中的一些“说明性文字”,本身不参与程序的编译和运行 ...
分类:Windows程序   时间:2018-09-06 02:39:06    阅读次数:230
webAPI 加注释生成帮助文档和测试demo
转自https://blog.csdn.net/a123_z/article/details/71078062 1:配置 接口注释。 (1)配置生成xml的路径。我们在项目上面点右键→属性→生成标签页配置xml的路径。 (2)在xml的读取路径:在Areas\HelpPage\App_Start\H ...
分类:Windows程序   时间:2018-09-06 02:40:14    阅读次数:211
C# UpdatePanel加载完毕回调JS
如果 我们想UpdatePanel加载完成后做一些事情 需要使用js // ******* BEGIN: Application 事件操作。******* // Hook up Application event handlers.【为Application事件关联操作】 var app = Sys... ...
分类:Windows程序   时间:2018-09-06 02:57:44    阅读次数:264
mvc方式创建webAPI 解决跨域问题
方法在Win10 + VS2017(MVC5)测试通过 1、建立 WebApi项目: 输入项目名称和位置,确定,进入模板选择页面。 选择 WEB API 模板(选择Web API 时会添加对MVC 的支持) 2、添加ApiController 查看生产的目录结构,发现WebAPI 的结构和普通MVC ...
分类:Windows程序   时间:2018-09-06 03:01:28    阅读次数:191
1911: [Apio2010]特别行动队
Description Input Output Sample Input 4 -1 10 -20 2 2 3 4 Sample Output 9 HINT 似乎逐渐掌握了斜率优化的规律,,, 1 #include<iostream> 2 #include<cstdio> 3 using names ...
分类:Windows程序   时间:2018-09-06 03:05:24    阅读次数:206
C# 测试代码#if DEBUG使用
C# 测试代码#if DEBUG使用 代码示例: #if DEBUG Console.WriteLine("DEBUG:11111111111"); #else Console.WriteLine("Release:222222222222"); #endif 代码示例: #if DEBUG Con ...
分类:Windows程序   时间:2018-09-06 03:06:16    阅读次数:194
e586. Drawing Simple Shapes
There are two ways to draw basic shapes like circles, ovals, lines, arcs, squares, rectangles, rounded rectangles, and polygons. The first is to use s ...
分类:Windows程序   时间:2018-09-06 10:52:35    阅读次数:221
e620. Activating a Keystroke When Any Component in the Window Has Focus
Normally, a keystroke registered to a component is activated when the component has the focus. This type of activation condition is called WHEN_FOCUSE ...
分类:Windows程序   时间:2018-09-06 10:55:40    阅读次数:188
e591. Drawing Simple Text
See also e575 The Quintessential Drawing Program. ...
分类:Windows程序   时间:2018-09-06 10:56:46    阅读次数:232
e614. Setting the Initial Focused Component in a Window
There is no straightforward way to set the initial focused component in a window. The typical method is to add a window listener to listen for the win ...
分类:Windows程序   时间:2018-09-06 10:58:39    阅读次数:185
e606. Determining Which Component or Window Has the Focus
// null is returned if none of the components in this application has the focus Component compFocusOwner = KeyboardFocusManager.getCurrentKeyboardFocu... ...
分类:Windows程序   时间:2018-09-06 11:01:00    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!