摘要: 1.内存简介 下面以unsigned int value = 0x12345678为例,分别看看在两种字节序下其存储情况 : 1.大端模式(Big-endian) 高尾端:数据的高字节保存在内存的低地址中。 Big-Endian: 低地址存放高位,如下: 高地址 buf[3] (0x78) -- 低 阅读全文
posted @ 2018-04-30 19:05 <--青青子衿--> 阅读(278) 评论(0) 推荐(0)
摘要: 1.为何要用 ObservableCollection 因为,http://www.cnblogs.com/jiangyan219/articles/8305182.html ObservableCollection是 表示一个动态数据集合,在添加项、移除项或刷新整个列表时,此集合将提供通知。在更新 阅读全文
posted @ 2018-03-15 22:48 <--青青子衿--> 阅读(216) 评论(0) 推荐(0)
摘要: 1 #region DataGrid 跨线程委托输出显示方法 姜彦20180315 1439 2 /// 3 /// DataGrid控件直接接受串口返回数据委托 4 /// 5 /// 6 public delegate void DataGridReceiverDelegate(TSerialP... 阅读全文
posted @ 2018-03-15 22:40 <--青青子衿--> 阅读(104) 评论(0) 推荐(0)
摘要: 1. dgFormula.ScrollIntoView(_FrameContents[_FrameContents.Count - 1], dgFormula.Columns[0]);//滚动条自动跟踪 姜彦20180315 1929 阅读全文
posted @ 2018-03-15 22:38 <--青青子衿--> 阅读(165) 评论(0) 推荐(0)
摘要: 1.通过WPF绑定一个属性,比如bool型的数据 <TextBox BorderBrush="Transparent" Text="{Binding Path=DataContent,Mode=OneWay,UpdateSourceTrigger=LostFocus}" HorizontalCont 阅读全文
posted @ 2018-03-15 22:36 <--青青子衿--> 阅读(2300) 评论(0) 推荐(0)
摘要: 关键字 Override override 方法提供从基类继承的成员的新实现。 通过 override 声明重写的方法称为重写基方法。 重写基方法必须具有与 override 方法相同的签名。 不能重新非虚方法或静态方法。 重写基方法必须是 virtual 、 abstract 或 override 阅读全文
posted @ 2018-02-28 20:16 <--青青子衿--> 阅读(543) 评论(0) 推荐(0)
摘要: 该项目Demo创建于2018年02月26日主要目的是为了学习WPF中,关于资源样式、风格的设计和引用; 设计步骤:1.首先创建一个WPF项目,然后添加MVVM引用,用nuget添加,这个过程中可能会报错,注意引用稳定版本的mvvm动态库;2.创建一个公共引用的类库,然后在里面的添加一个放置各种资源文 阅读全文
posted @ 2018-02-27 22:37 <--青青子衿--> 阅读(263) 评论(0) 推荐(0)
摘要: 1.绑定的数据,特定的字段,绑定到DataGrid 2.在xaml文件中,修改DataGrid的颜色变化条件 1 <DataGrid.RowStyle> 2 <Style TargetType="{x:Type DataGridRow}" BasedOn="{StaticResource dataG 阅读全文
posted @ 2018-02-27 22:31 <--青青子衿--> 阅读(409) 评论(0) 推荐(0)
摘要: 1.我接手了别人的一个项目,因为我感觉别人的文件夹建立的太乱了,就整理了一下,一开始是 直接把他原有的solution直接考到一个新文件夹下面,然后分层建立好文件夹及相应考的文件至目录下后,就开始在solution下面逐个添加原来工程项目中的各个类库和UI项目等,并且重新撤销了原有类型的各个引用后 阅读全文
posted @ 2018-01-21 17:14 <--青青子衿--> 阅读(1387) 评论(0) 推荐(0)
摘要: https://msdn.microsoft.com/zh-cn/library/ms668604(VS.95).aspx 表示一个动态数据集合,在添加项、移除项或刷新整个列表时,此集合将提供通知。 继承层次结构 System.Object System.Collections.ObjectMode 阅读全文
posted @ 2018-01-17 19:49 <--青青子衿--> 阅读(297) 评论(0) 推荐(0)
// /**/ // 在页脚Html代码 引入 // function btn_donateClick() { var DivPopup = document.getElementById('Div_popup'); var DivMasklayer = document.getElementById('div_masklayer'); DivMasklayer.style.display = 'block'; DivPopup.style.display = 'block'; var h = Div_popup.clientHeight; with (Div_popup.style) { marginTop = -h / 2 + 'px'; } } function MasklayerClick() { var masklayer = document.getElementById('div_masklayer'); var divImg = document.getElementById("Div_popup"); masklayer.style.display = "none"; divImg.style.display = "none"; } setTimeout( function () { document.getElementById('div_masklayer').onclick = MasklayerClick; document.getElementById('btn_donate').onclick = btn_donateClick; var a_gzw = document.getElementById("guanzhuwo"); a_gzw.href = "javascript:void(0);"; $("#guanzhuwo").attr("onclick","follow('33513f9f-ba13-e011-ac81-842b2b196315');"); }, 900);