《小软件源码分享27分析》由会员分享,可在线阅读,更多相关《小软件源码分享27分析(70页珍藏版)》请在金锄头文库上搜索。
1、手术室远程维护及控制系统 源代码 70/*/*系统主界面 类/*/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.Me
2、dia.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.IO;public partial class Thesystemmaininterface / Base class for a typical collection of appointments. / The type of the custom appointment class. Should implement / . public abstract class BaseAppointmentCollection
3、: ObservableCollection, IAppointmentFactory where T : IAppointment / Initializes a new instance of the class. protected BaseAppointmentCollection() / Initializes a new instance of the class. / The appointments.#if !SILVERLIGHT protected BaseAppointmentCollection(IEnumerable appointments) : base(appo
4、intments.ToList() #else protected BaseAppointmentCollection(IEnumerable appointments) this.AddRange(appointments); #endif / Creates a new appointment. Implement this method in your custom appointment / collection to create appointments of your custom appointment type. / A new appointment. public abs
5、tract IAppointment CreateNewAppointment(); /*/*智能控制 类/*/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;
6、using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.IO;public partial class Intelligentcontrol / InvertBooleanConverter is a converter that returns the negated equivalent of its boolean argument. public class InvertBooleanConverter : IValueConv
7、erter / Returns the inverted boolean value. public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) return !(bool)value; / Returns the inverted boolean value. public object ConvertBack(object value, Type targetType, object parameter, System.Gl
8、obalization.CultureInfo culture) return !(bool)value; /*/*控制箱面板 类/*/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.Wi
9、ndows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.IO;public partial class Thecontrolboxpanel / GridViewToggleRowDetailsColumn provides an easy and fast way to toggle row details visibility. public class GridViewToggleRowDetailsCol
10、umn : GridViewColumn, IWeakEventListener private WeakEvent.WeakEventToken visbilityChangedToken;private WeakReference lastExpandedDataItemWeakRef;/ Identifies the dependency property.public static readonly DependencyProperty ToggleButtonStyleProperty = DependencyProperty.Register(ToggleButtonStyle,t
11、ypeof(Style),typeof(GridViewToggleRowDetailsColumn),new PropertyMetadata(null, OnNotifyCellPropertyChanged);/ Gets or sets the style to be applied for the ToggleButton in that column./ The ToggleButton style.public Style ToggleButtonStylegetreturn (Style)this.GetValue(ToggleButtonStyleProperty);setthis.SetValue(ToggleButtonStyleProperty, value);/ Identifies the dependency property.public static readonly DependencyProperty ExpandModeProperty =Depen