




已阅读5页,还剩55页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
城市级物业运维管理系统 源代码 60/*/*系统登录 类/*/using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.IO;public partial class System login/ Interface which must be implemented by all/ classes which produce ranges distribution.public interface IRangeDistribution/ Creates list of the ranges./ Minimal value./ Maximal value./ Number of the ranges./ List of the ranges for given distribution.IEnumerable Create(double minValue, double maxValue, int tickMarkCount);/*/*小区录入 类/*/using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.IO;public partial class Cell entry / public class RangeBaseAutomationPeer : FrameworkElementAutomationPeer, IRangeValueProvider / Initializes a new instance of the RangeBaseAutomationPeer class. / public RangeBaseAutomationPeer(RangeBase owner) : base(owner) / public bool IsReadOnly get return !this.IsEnabled(); / public double LargeChange get return this.OwnerAsRangeBase().LargeChange; / public double Maximum get return this.OwnerAsRangeBase().Maximum; / public double Minimum get return this.OwnerAsRangeBase().Minimum; / public double SmallChange get return this.OwnerAsRangeBase().SmallChange; / public double Value get return this.GetValue(); / / void IRangeValueProvider.SetValue(double value) this.SetOwnerValue(value); / / / MethodImpl(MethodImplOptions.NoInlining) internal void RaiseMaximumPropertyChangedEvent(double oldValue, double newValue) this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.MaximumProperty, oldValue, newValue); / / / MethodImpl(MethodImplOptions.NoInlining) internal void RaiseMinimumPropertyChangedEvent(double oldValue, double newValue) this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.MinimumProperty, oldValue, newValue); / / / MethodImpl(MethodImplOptions.NoInlining) internal void RaiseValuePropertyChangedEvent(double oldValue, double newValue) this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.ValueProperty, oldValue, newValue); / / / MethodImpl(MethodImplOptions.NoInlining) internal void RaiseSmallChangePropertyChangedEvent(double oldValue, double newValue) this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.SmallChangeProperty, oldValue, newValue); / / / MethodImpl(MethodImplOptions.NoInlining) internal void RaiseLargeChangePropertyChangedEvent(double oldValue, double newValue) this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.LargeChangeProperty, oldValue, newValue); / / / MethodImpl(MethodImplOptions.NoInlining) internal void RaiseIsReadOnlyPropertyChangedEvent(bool oldValue, bool newValue) this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.IsReadOnlyProperty, oldValue, newValue); internal virtual void SetOwnerValue(double value) this.GuarantyEnabled(); RangeBase owner = this.OwnerAsRangeBase(); if (value owner.Maximum) throw new ArgumentOutOfRangeException(value); owner.Value = value; internal virtual double GetValue() double result = this.OwnerAsRangeBase().Value; return result; / internal void GuarantyEnabled() if (!IsEnabled() throw new ElementNotEnabledException(); / implement this method in descendat / / / / /protected override AutomationControlType GetAutomationControlTypeCore() / / return AutomationControlType.Slider; / / / private RangeBase OwnerAsRangeBase() RangeBase owner = this.Owner as RangeBase; if (null = owner) throw new InvalidOperationException(The Owner have to be a RangeBase or a Descendant); return owner; /*/*楼宇录入 类/*/using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.IO;public partial class Building entry / Represents the common system parameters. SuppressMessage(Microsoft.Design, CA1001:TypesThatOwnDisposableFieldsShouldBeDisposable) public class SystemParameters2 : INotifyPropertyChanged private readonly DictionaryWM, List UpdateTable; ThreadStatic private static SystemParameters2 threadLocalSingleton; private Rect captionButtonLocation; private double captionHeight; private Color glassColor; private SolidColorBrush glassColorBrush; private bool isGlassEnabled; private bool isHighContrast; private MessageWindow messageHwnd; private Size smallIconSize; private string uoxThemeColor; private string uoxThemeName; private CornerRadius windowCornerRadius; private Thickness windowNonClientFrameThickness; private Thickness windowResizeBorderThickness; / Prevents a default instance of the SystemParameters2 class from being created. private SystemParameters2() /This window gets used for calculations about standard caption button locations /so it has WS_OVERLAPPEDWINDOW as a style to give it normal caption buttons. /This window may be shown during calculations of caption bar information, so create it at a location thats likely offscreen. this.messageHwnd = new MessageWindow(CS)0, WS.OVERLAPPEDWINDOW | WS.DISABLED, (WS_EX)0, new Rect(-16000, -16000, 100, 100), string.Empty, this._WndProc); this.messageHwnd.Dispatcher.ShutdownStarted += (sender, e) = Utility.SafeDispose(ref this.messageHwnd); /Fixup the default values of the DPs. this._InitializeIsGlassEnabled(); this._InitializeGlassColor(); this._InitializeCaptionHeight(); this._InitializeWindowNonClientFrameThickness(); this._InitializeWindowResizeBorderThickness(); this._InitializeCaptionButtonLocation(); this._InitializeSmallIconSize(); this._InitializeHighContrast(); this._InitializeThemeInfo(); /WindowCornerRadius isnt exposed by true system parameters, so it requires the theme to be initialized first. this._InitializeWindowCornerRadius(); this.UpdateTable = new DictionaryWM, List WM.THEMECHANGED, new List this._UpdateThemeInfo, this._UpdateHighContrast, this._UpdateWindowCornerRadius, this._UpdateCaptionButtonLocation, , WM.SETTINGCHANGE, new List this._UpdateCaptionHeight, this._UpdateWindowResizeBorderThickness, this._UpdateSmallIconSize, this._UpdateHighContrast, this._UpdateWindowNonClientFrameThickness, this._UpdateCaptionButtonLocation, , WM.DWMNCRENDERINGCHANGED, new List this._UpdateIsGlassEnabled , WM.DWMCOMPOSITIONCHANGED, new List this._UpdateIsGlassEnabled , WM.DWMCOLORIZATIONCOLORCHANGED, new List this._UpdateGlassColor , ; private delegate void _SystemMetricUpdate(IntPtr param, IntPtr legParam); / Identifies the PropertyChanged event handler. public event PropertyChangedEventHandler PropertyChanged; / Identifies the current instance. public static SystemParameters2 Current get if (threadLocalSingleton = null) threadLocalSingleton = new SystemParameters2(); return threadLocalSingleton; / Identifies the HighContrast property. public bool HighContrast get return this.isHighContrast; private set if (value != this.isHighContrast) this.isHighContrast = value; this._NotifyPropertyChanged(HighContrast); / Identifies the IsGlassEnabled property. public bool IsGlassEnabled get /return this.isGlassEnabled; /It turns out there may be some lag between someone asking this /and the window getting updated. Its not too expensive, just always do the check. return Telerik.Windows.Controls.RibbonBar.Shell.Standard.NativeMethodsHelper.NativeMethods.DwmIsCompositionEnabled(); private set if (value != this.isGlassEnabled) this.isGlassEnabled = value; this._NotifyPropertyChanged(IsGlassEnabled); / Identifies the SmallIconSize property. public Size SmallIconSize get return new Size(this.smallIconSize.Width, this.smallIconSize.Height); private set if (value != this.smallIconSize) this.smallIconSize = value; this._NotifyPropertyChanged(SmallIconSize); / Identifies the UxThemeColor property. SuppressMessage(Microsoft.Naming, CA1709:IdentifiersShouldBeCasedCorrectly, MessageId = Ux) SuppressMessage(Microsoft.Naming, CA1704:IdentifiersShouldBeSpelledCorrectly, MessageId = Ux) public string UxThemeColor get return this.uoxThemeColor; private set if (value != this.uoxThemeColor) this.uoxThemeColor = value; this._NotifyPropertyChanged(UxThemeColor); / Identifies the UxThemeName property. SuppressMessage(Microsoft.Naming, CA1709:IdentifiersShouldBeCasedCorrectly, MessageId = Ux) SuppressMessage(Microsoft.Naming, CA1704:IdentifiersShouldBeSpelledCorrectly, MessageId = Ux) public string UxThemeName get return this.uoxThemeName; private set if (value != this.uoxThemeName) this.uoxThemeName = value; this._NotifyPropertyChanged(UxThemeName); / Identifies the WindowCaptionButtonsLocation property. public Rect WindowCaptionButtonsLocation get return this.captionButtonLocation; private set if (value != this.captionButtonLocation) this.captionButtonLocation = value; this._NotifyPropertyChanged(WindowCaptionButtonsLocation); / Identifies the WindowCaptionHeight property. public double WindowCaptionHeight get return this.captionHeight; private set if (value != this.captionHeight) this.captionHeight = value; this._NotifyPropertyChanged(WindowCaptionHeight); / Identifies the WindowCornerRadius property. public CornerRadius WindowCornerRadius get return this.windowCornerRadius; private set if (value != this.windowCornerRadius) this.windowCornerRadius = value; this._NotifyPropertyChanged(WindowCornerRadius); / Identifies the WindowGlassBrush property. public SolidColorBrush WindowGlassBrush get return this.glassColorBrush; private set Assert.IsNotNull(value); Assert.IsTrue(value.IsFrozen); if (this.glassColorBrush = null | value.Color != this.glassColorBrush.Color) this.glassColorBrush = value; this._NotifyPropertyChanged(WindowGlassBrush); / Identifies the WindowGlassColor property. public Color WindowGlassColor get return this.glassColor; private set if (value != this
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年教师招聘之《小学教师招聘》通关练习题库包含答案详解(达标题)
- 教师招聘之《小学教师招聘》考试历年机考真题集【培优b卷】附答案详解
- 2025年教师招聘之《小学教师招聘》能力检测试卷及参考答案详解【突破训练】
- 考点攻克自考专业(行政管理)测试卷及完整答案【夺冠】
- 2025年教师招聘之《幼儿教师招聘》练习题包含答案详解【巩固】
- 2025年二级建造师《建筑工程管理与实务》真题及答案及解析AB卷
- 2025年教师招聘之《幼儿教师招聘》练习题库及参考答案详解(精练)
- 教师招聘之《小学教师招聘》能力提升打印大全(有一套)附答案详解
- 教师招聘之《幼儿教师招聘》复习试题附答案详解(预热题)
- 2025年教师招聘之《幼儿教师招聘》能力检测试卷完整参考答案详解
- 2025年专业医疗机构感染控制与消毒作业外包服务合同书
- 高档小区宠物管理办法
- 2024注册安全工程师《历年计算题型》
- 2025年江苏省开发区运行现状及投资战略研究报告
- 少儿口才培训教案 课件
- 2024年药品监管业务知识技能竞赛考试题库(含答案)
- 试油hse管理制度
- 疼痛科质量控制管理
- 市(县)级温室气体排放源、排放清单报告模板
- 《出境旅游领队实务》课件项目一
- 低空经济八大应用场景与实践案例解析方案
评论
0/150
提交评论