1.城市级物业运维管理系统-源代码.doc

上传人:11****ws 文档编号:2288536 上传时间:2019-05-05 格式:DOC 页数:60 大小:227.50KB
下载 相关 举报
1.城市级物业运维管理系统-源代码.doc_第1页
第1页 / 共60页
1.城市级物业运维管理系统-源代码.doc_第2页
第2页 / 共60页
1.城市级物业运维管理系统-源代码.doc_第3页
第3页 / 共60页
1.城市级物业运维管理系统-源代码.doc_第4页
第4页 / 共60页
1.城市级物业运维管理系统-源代码.doc_第5页
第5页 / 共60页
点击查看更多>>
资源描述

1、城市级物业运维管理系统 源代码 1/*/*系统登录 类/*/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

2、.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 valu

3、e./ 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.

4、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 : FrameworkElementAuto

5、mationPeer, IRangeValueProvider城市级物业运维管理系统 源代码 2/ Initializes a new instance of the RangeBaseAutomationPeer class./ public RangeBaseAutomationPeer(RangeBase owner): base(owner)/ public bool IsReadOnlygetreturn !this.IsEnabled();/ public double LargeChangegetreturn this.OwnerAsRangeBase().LargeChange

6、;/ public double Maximumgetreturn this.OwnerAsRangeBase().Maximum;/ public double Minimumgetreturn this.OwnerAsRangeBase().Minimum;/ public double SmallChangegetreturn this.OwnerAsRangeBase().SmallChange;城市级物业运维管理系统 源代码 3/ public double Valuegetreturn this.GetValue();/ / void IRangeValueProvider.Set

7、Value(double value)this.SetOwnerValue(value);/ / / MethodImpl(MethodImplOptions.NoInlining)internal void RaiseMaximumPropertyChangedEvent(double oldValue, double newValue)this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.MaximumProperty, oldValue, newValue);/ / / MethodImpl(MethodImplOptio

8、ns.NoInlining)internal void RaiseMinimumPropertyChangedEvent(double oldValue, double newValue)this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.MinimumProperty, oldValue, newValue);/ / / MethodImpl(MethodImplOptions.NoInlining)internal void RaiseValuePropertyChangedEvent(double oldValue, d

9、ouble newValue)this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.ValueProperty, oldValue, newValue);/ / 城市级物业运维管理系统 源代码 4/ MethodImpl(MethodImplOptions.NoInlining)internal void RaiseSmallChangePropertyChangedEvent(double oldValue, double newValue)this.RaisePropertyChangedEvent(RangeValuePa

10、tternIdentifiers.SmallChangeProperty, oldValue, newValue);/ / / MethodImpl(MethodImplOptions.NoInlining)internal void RaiseLargeChangePropertyChangedEvent(double oldValue, double newValue)this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.LargeChangeProperty, oldValue, newValue);/ / / Metho

11、dImpl(MethodImplOptions.NoInlining)internal void RaiseIsReadOnlyPropertyChangedEvent(bool oldValue, bool newValue)this.RaisePropertyChangedEvent(RangeValuePatternIdentifiers.IsReadOnlyProperty, oldValue, newValue);internal virtual void SetOwnerValue(double value)this.GuarantyEnabled();RangeBase owne

12、r = 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()

13、;/ implement this method in descendat/城市级物业运维管理系统 源代码 5/ / /protected override AutomationControlType GetAutomationControlTypeCore()/ return AutomationControlType.Slider;/ / private RangeBase OwnerAsRangeBase()RangeBase owner = this.Owner as RangeBase;if (null = owner)throw new InvalidOperationExcept

14、ion(“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;u

15、sing 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:TypesThatOwnDisposableFieldsShouldBeDispos

16、able“)public class SystemParameters2 : INotifyPropertyChangedprivate readonly Dictionary UpdateTable;ThreadStaticprivate static SystemParameters2 threadLocalSingleton;private Rect captionButtonLocation;private double captionHeight;private Color glassColor;private SolidColorBrush glassColorBrush;priv

17、ate bool isGlassEnabled;private bool isHighContrast;private MessageWindow messageHwnd;private Size smallIconSize;城市级物业运维管理系统 源代码 6private string uoxThemeColor;private string uoxThemeName;private CornerRadius windowCornerRadius;private Thickness windowNonClientFrameThickness;private Thickness windowR

18、esizeBorderThickness;/ 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

19、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.ShutdownStar

20、ted += (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._Initia

21、lizeCaptionButtonLocation();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 Dictionary W

22、M.THEMECHANGED,new Listthis._UpdateThemeInfo, this._UpdateHighContrast, this._UpdateWindowCornerRadius,this._UpdateCaptionButtonLocation, , WM.SETTINGCHANGE,new Listthis._UpdateCaptionHeight,this._UpdateWindowResizeBorderThickness,this._UpdateSmallIconSize,this._UpdateHighContrast,this._UpdateWindow

23、NonClientFrameThickness,this._UpdateCaptionButtonLocation, ,WM.DWMNCRENDERINGCHANGED, new List this._UpdateIsGlassEnabled ,WM.DWMCOMPOSITIONCHANGED, new List城市级物业运维管理系统 源代码 7this._UpdateIsGlassEnabled ,WM.DWMCOLORIZATIONCOLORCHANGED, new Listthis._UpdateGlassColor ,;private delegate void _SystemMetr

24、icUpdate(IntPtr param, IntPtr legParam);/ Identifies the PropertyChanged event handler.public event PropertyChangedEventHandler PropertyChanged;/ Identifies the current instance.public static SystemParameters2 Currentgetif (threadLocalSingleton = null)threadLocalSingleton = new SystemParameters2();r

25、eturn threadLocalSingleton;/ Identifies the HighContrast property.public bool HighContrastgetreturn this.isHighContrast;private setif (value != this.isHighContrast)this.isHighContrast = value;this._NotifyPropertyChanged(“HighContrast“);/ Identifies the IsGlassEnabled property.public bool IsGlassEnab

26、ledget/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.城市级物业运维管理系统 源代码 8return Telerik.Windows.Controls.RibbonBar.Shell.Standard.NativeMethodsHelper.NativeMethods.DwmIsCompositi

27、onEnabled();private setif (value != this.isGlassEnabled)this.isGlassEnabled = value;this._NotifyPropertyChanged(“IsGlassEnabled“);/ Identifies the SmallIconSize property.public Size SmallIconSizegetreturn new Size(this.smallIconSize.Width, this.smallIconSize.Height);private setif (value != this.smal

28、lIconSize)this.smallIconSize = value;this._NotifyPropertyChanged(“SmallIconSize“);/ Identifies the UxThemeColor property.SuppressMessage(“Microsoft.Naming“, “CA1709:IdentifiersShouldBeCasedCorrectly“, MessageId = “Ux“)SuppressMessage(“Microsoft.Naming“, “CA1704:IdentifiersShouldBeSpelledCorrectly“,

29、MessageId = “Ux“)public string UxThemeColorgetreturn this.uoxThemeColor;private setif (value != this.uoxThemeColor)this.uoxThemeColor = value;this._NotifyPropertyChanged(“UxThemeColor“);/ Identifies the UxThemeName property.SuppressMessage(“Microsoft.Naming“, “CA1709:IdentifiersShouldBeCasedCorrectl

30、y“, MessageId = “Ux“)城市级物业运维管理系统 源代码 9SuppressMessage(“Microsoft.Naming“, “CA1704:IdentifiersShouldBeSpelledCorrectly“, MessageId = “Ux“)public string UxThemeNamegetreturn this.uoxThemeName;private setif (value != this.uoxThemeName)this.uoxThemeName = value;this._NotifyPropertyChanged(“UxThemeName“)

31、;/ Identifies the WindowCaptionButtonsLocation property.public Rect WindowCaptionButtonsLocationgetreturn this.captionButtonLocation;private setif (value != this.captionButtonLocation)this.captionButtonLocation = value;this._NotifyPropertyChanged(“WindowCaptionButtonsLocation“);/ Identifies the Wind

32、owCaptionHeight property.public double WindowCaptionHeightgetreturn this.captionHeight;private setif (value != this.captionHeight)this.captionHeight = value;this._NotifyPropertyChanged(“WindowCaptionHeight“);/ Identifies the WindowCornerRadius property.public CornerRadius WindowCornerRadiusget城市级物业运

33、维管理系统 源代码 10return this.windowCornerRadius;private setif (value != this.windowCornerRadius)this.windowCornerRadius = value;this._NotifyPropertyChanged(“WindowCornerRadius“);/ Identifies the WindowGlassBrush property.public SolidColorBrush WindowGlassBrushgetreturn this.glassColorBrush;private setAss

34、ert.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 WindowGlassColorgetreturn this.glassColor;private setif (value != this.glassColor)this.glassColor = value;this._NotifyPropertyChanged(“WindowGlassColor“);/ Identifies the WindowNonClientFrameThickness property.public Thickness WindowNonClientFrameThicknessgetreturn this.windowNonClientFrameThickness;

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 实用文档资料库 > 策划方案

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。