首页 > Windows开发
es分布式文档系统_bulk api的奇特json格式与底层性能优化关系
1、bulk api奇特的json格式{"action":{"meta"}}\n{"data"}\n{"action":{"meta"}}\n{"data"}\n 2、如果采用比较良好的json数组格式[{ "action":{ "meta" }, "data":{ }}]允许任意的换行,整个可读性 ...
分类:Windows开发   时间:2018-03-06 22:17:44    收藏:0  评论:0  赞:0  阅读:220
WPF:Task与事件在下载同步界面中的应用
//设置一个下载事件类,可传输一个字符串 public class DownloadEventArgs:EventArgs { public string id { get; set; } public DownloadEventArgs(string m) { id = m; } } //下载中事 ...
分类:Windows开发   时间:2018-03-06 20:07:36    收藏:0  评论:0  赞:0  阅读:339
WPF界面的异步后台加载
private void Init() { BackgroundWorker worker = new BackgroundWorker(); worker.DoWork += (s, e) => { this.MainStackPanel.Dispatcher.BeginInvoke(System ...
分类:Windows开发   时间:2018-03-06 19:46:37    收藏:0  评论:0  赞:0  阅读:546
WPF:事件委托对于不同界面间通信的应用
界面1内设定点击事件,生成Path用事件传出public partial class TemplateWindow : Window { internal delegate void ConfirmButtonClick(string Path); /// <summary> /// 点击确定按钮事 ...
分类:Windows开发   时间:2018-03-06 19:31:08    收藏:0  评论:0  赞:0  阅读:442
C#简单入门
公司给的一个小的practice C# vs2017 Stage 1 (cmd)1. Parse the dll (reflection)2. Write all the public methods to a txt file (io) Stage 2 (cmd)1. Create a local ...
分类:Windows开发   时间:2018-03-06 18:59:39    收藏:0  评论:0  赞:0  阅读:251
WPF 打开网页
1、利用浏览器打开using System.Diagnostics; Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = "http://www.baidu.com"; proc.Start(); 2、 ...
分类:Windows开发   时间:2018-03-06 18:59:05    收藏:0  评论:0  赞:0  阅读:204
代理设置-解决Win7下Git 和 虚拟机下Ubuntu无法上网问题
Win7代理查询:Internet属性->连接->局域网设置->代理服务器 Ubuntu全系统设置:System Settings -> Network -> Network proxy -> Manual -> Input the right IP&Port -> Apply system wid ...
分类:Windows开发   时间:2018-03-06 18:55:10    收藏:0  评论:0  赞:0  阅读:258
WPF:window设置单一开启
方法一: Window window = new Window();window.ShowDialog;方法二: 设置一个判断窗口打开状态的全局控制变量 private bool isOpened = false; private void Button_Click(object sender, R ...
分类:Windows开发   时间:2018-03-06 18:54:52    收藏:0  评论:0  赞:0  阅读:166
WPF后台设置颜色字体等
Button TempButton = new Button(); TempButton.Tag = “按钮标记”; TempButton.Height = 30; TempButton.Width = 100; TempButton.Style = this.FindResource("Butto ...
分类:Windows开发   时间:2018-03-06 18:53:21    收藏:0  评论:0  赞:0  阅读:433
win10中使用 Windows照片查看器
新建一个txt,将文件后缀名改为 .reg 用记事本或者其他txt编辑器编辑,复制下面文字: 然后双击.reg文件,复制到注册表 执行完后,找到图片文件,右键,选择 打开方式 ->选择其他应用 选中 Windows 照片查看器,下面勾选 始终使用此应用打开... ...
分类:Windows开发   时间:2018-03-06 18:51:27    收藏:0  评论:0  赞:0  阅读:219
WPF ContextMenu+VisualTreeHelper实现删除控件操作
<UserControl MouseRightButtonDown="UserControl_MouseRightButtonDown" > <UserControl.ContextMenu > <ContextMenu Name="menu"> <MenuItem Header="删除" Clic ...
分类:Windows开发   时间:2018-03-06 18:45:19    收藏:0  评论:0  赞:0  阅读:287
WPF中如何禁用空格键(或其他键)
在选择的控件中添加KeyDown event method private void OnKeyDown(object sender, KeyEventArgs e){if (e.Key == Key.Space) { e.Handled = true; return; }} 在选择的控件中添加Ke ...
分类:Windows开发   时间:2018-03-06 18:41:17    收藏:0  评论:0  赞:0  阅读:289
WPF控件截图
//截图 RenderTargetBitmap RenderVisaulToBitmap(Visual vsual, int width, int height) { var rtb = new RenderTargetBitmap(width, height, 96, 96, PixelForma ...
分类:Windows开发   时间:2018-03-06 18:11:21    收藏:0  评论:0  赞:0  阅读:194
WPF文本框只允许输入数字
XAML代码 < TextBox Height="23" HorizontalAlignment="Left" Margin="100,5,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" DataObject.Pasting="tex ...
分类:Windows开发   时间:2018-03-06 18:09:07    收藏:0  评论:0  赞:0  阅读:186
UEFI下windows启动过程
引导文件 在UEFI安装完操作系统后,Windows至少使用两个分区,一个叫做ESP分区(EFI SYSTEM PARTITION),用于存放启动文件,另一个则是BIOS下正常的系统分区,不同的是,BIOS下引导文件是winload.exe,UEFI下引导文件式winload.efi,两者都是pec ...
分类:Windows开发   时间:2018-03-06 14:20:15    收藏:0  评论:0  赞:0  阅读:214
C# Interactive Walkthrough
C# Interactive Walkthrough ...
分类:Windows开发   时间:2018-03-06 14:18:53    收藏:0  评论:0  赞:0  阅读:181
WinForm控件之ComboBox,DataGridView
1.代码结构截图 2.核心代码 using System; using System.Data; using System.Drawing; using System.Windows.Forms; namespace WinFormComboBoxDemos { /// /// WinForm程序:... ...
分类:Windows开发   时间:2018-03-06 13:33:30    收藏:0  评论:0  赞:0  阅读:280
终于,我也要出一本C#的书了 - 我的写作历程与C#书单推荐
我之前的面试题停了很久,是因为 - 我写书去了。 前言 我于2012年3月开始工作,到现在马上就满六年了。这六年里,我从一个连Sql server是什么都不知道,只会写最简单的c#的程序员开始做起,一步一步从一个籍籍无名的外包公司奋斗到了一个比较大的金融机构的中层,工资也提升到刚参加工作的接近四倍。 ...
分类:Windows开发   时间:2018-03-06 13:14:52    收藏:0  评论:0  赞:0  阅读:250
Windows定时删除某天前文件的批处理脚本
注:1.在windows2003下,如XP下因为没有forfiles.exe,拷贝2003的forfiles.exe文件到XP的system32目录即可使用?? ?2.该文档适用于windows客户端操作xp win7/8/10,windows服务器端操作系统 server 2003/2008/2012/2016。? ?3.如有错漏,烦劳指出,谢谢
分类:Windows开发   时间:2018-03-06 12:44:19    收藏:0  评论:0  赞:0  阅读:289
C# 串口编程 对端口的访问被拒绝
感谢Sunny秋刀鱼。https://www.cnblogs.com/527289276qq/p/5595798.html 在页面或者窗口Unloaded事件中关闭串口即可。 ...
分类:Windows开发   时间:2018-03-06 12:30:41    收藏:0  评论:0  赞:0  阅读:998
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!