上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 133 下一页
摘要: 参考网址: https://www.cnblogs.com/wenlong512/p/7355971.html 一、简介 程序创建在 Windows 会话中,可长时间运行的可执行应用程序。这些服务可以在计算机启动时自动启动,可以暂停和重新启动而且不显示任何用户界面。这些功能使服务非常适合在服务器上使 阅读全文
posted @ 2021-07-19 17:33 MaxBruce 阅读(460) 评论(0) 推荐(0)
摘要: 参考网址: https://www.cnblogs.com/jingmoxukong/category/528514.html?page=1 阅读全文
posted @ 2021-07-19 10:31 MaxBruce 阅读(48) 评论(0) 推荐(0)
摘要: 用c#中创建一个windows服务非常简单,与windows服务相关的类都在System.ServiceProcess命名空间下。 每个服务都需要继承自ServiceBase类,并重写相应的启动、暂停、停止等方法。 windows服务的相关信息是存放与注册表中的,所以他可以在不需要用户登录的情况下自 阅读全文
posted @ 2021-07-19 09:39 MaxBruce 阅读(292) 评论(0) 推荐(0)
摘要: 两个对象是否为同一个对象:是看两个对象是否指向堆中的同一块内存。 1、使用object.ReferenceEquals() class Program { static void Main(string[] args) { Person p1 = new Person(); p1.Name = "M 阅读全文
posted @ 2021-07-17 18:52 MaxBruce 阅读(469) 评论(0) 推荐(0)
摘要: auto folder1="./.mm"; QDir *folder = new QDir; bool exist = folder->exists(folder1); if(exist) { QMessageBox::warning(this, tr("createDir"), tr("Dir i 阅读全文
posted @ 2021-07-17 18:33 MaxBruce 阅读(80) 评论(0) 推荐(0)
摘要: 在WPF中,数据模板是非常强大的工具,他是一块定义如何显示绑定的对象的XAML标记。有两种类型的控件支持数据模板:(1)内容控件通过ContentTemplate属性支持数据模板;(2)列表控件通过ItemTemplate属性支持数据模板。为了能够进一步提升数据模板的功能,在使用中常常会要求动态选择 阅读全文
posted @ 2021-07-17 16:57 MaxBruce 阅读(501) 评论(0) 推荐(0)
摘要: 参考网址:https://www.cnblogs.com/dxmfans/p/9434612.html <Window x:Class="Wpf180706.Window5" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentati 阅读全文
posted @ 2021-07-17 16:29 MaxBruce 阅读(310) 评论(0) 推荐(0)
摘要: 这篇博客介绍如何在UWP开发时,如何存储App Data和获取。 App Data是指用户的一些设定,偏好等。例如,App的主题,是否接收推送,离线接收消息等。需要区分下App Data和User Data,一般情况下User Data是一些文档,文件,数据库记录。 App Data的类型有Sett 阅读全文
posted @ 2021-07-17 12:52 MaxBruce 阅读(184) 评论(0) 推荐(0)
摘要: Say I have a standard WPF ItemsControl bound to an ObservableCollection of "Dog" objects like so: <ItemsControl ItemsSource="{Binding Dogs}"> <ItemsCo 阅读全文
posted @ 2021-07-17 10:39 MaxBruce 阅读(1733) 评论(0) 推荐(0)
摘要: 我们通常说的模板是用来参照的,同样在WPF中,模板是用来作为制作控件的参照。 一、认识模板 1.1WPF菜鸟看模板 前面的记录有提过,控件主要是算法和数据的载体。控件的算法主要体现在可以激发的事件、可以调用的方法、能进行的操作等方面;控件的数据体现为:控件能展示哪些数据。上面两方面终决定了控件,在以 阅读全文
posted @ 2021-07-17 08:43 MaxBruce 阅读(1077) 评论(0) 推荐(0)
上一页 1 ··· 67 68 69 70 71 72 73 74 75 ··· 133 下一页