Design and development of medical assistant software based on WPF

Wuxi Shangwo Biotechnology Co., Ltd. has developed a "Nakulon Nitric Oxide Analyzer" for respiratory system testing. After the product is put on the market, it is found that children use the instrument very differently from adults. The data collection time is different. Enterprises urgently need a set of software that is medically compatible and suitable for children of different ages. According to the relevant business requirements put forward by the enterprise, and in order to cooperate with the use of medical equipment, the focus of development and production is to develop some game software suitable for children and with a simple game storyline. For this reason, we chose WPF (Windows PresentaTIon FoundaTIon) technology under Visual Studio 2010. This article introduces WPF and the practical application of WPF in the project.

1. WPF architecture and characteristics

The full name of WPF is Windows PresentaTIon FoundaTIon, which is one of the most important technologies for Windows platform GUI development in the next ten years. It is a latest software interface display system developed by Microsoft based on .NET (currently the latest version is .NET Framework 4.0) platform. Provides a unified description and operation method for the user interface, documents and multimedia. Compared with the previous general programming method GDI (Graphics Device Interface), this technology that has been used for more than ten years has been expanded by Microsoft many times in the .NET framework, but its various expansions have not been very good. To meet the requirements of the current software development for more and more complex and more and more perfect software interfaces, in order to achieve better results when completing the same interface, and also to be compatible with the next-generation operating system. To this end, this new program interface development technology was released.

1.1 WPF architecture

WPF is mainly composed of three layers of components such as Presentation Framework, Presentation Core and mil core, which are subsystems of WPF. Among them, Presentation Framework and Presentation Core are managed components, while mil core is an unmanaged component. The hosted component Presentation Core provides a series of functions such as event processing and layout. In the basic functions provided by the component Presentation Core, the component Presentation Framework implements various appearances of WPF, such as the realization of image effects and the realization of button controls. The unmanaged mil core is written in unmanaged code, and its purpose is to achieve interaction with DirectX to improve efficiency. User32, DirectX and Kernel in the architecture are Windows subsystems. As shown in Figure 1 WPF application running process.

1.2 XAML language

XAML is the abbreviation of eXtensible Application Markup Language and is called Extensible Application Markup Language. It can be seen from the name that it is a markup language, which means that it has many features of other markup languages. XAML is a new descriptive language created by Microsoft to build application user interfaces, that is, used to write WPF (Windows Presentation Foundation) applications. XAML introduces multiple elements such as namespaces and attributes in XML, that is, XAML is based on XML. And it is very close to the way of using XML, so for XAML it is a very good XML document.

In the past programming, we often have a headache to make the internal data and the interface well connected, and WPF provides an effective method of data binding, which solves this problem well. Use data binding in XAML, and the key to using data binding is to create an instance object such as System.Windows.Data.Binding. Of course, the object can also be created in C #. Data binding actually keeps the data values ​​displayed on the interface the same as the internal data values, and the use of the function of data binding makes the developers of our project team greatly improve the efficiency of project development work.

1.3 Microsoft Expression Blend

Microsoft Expression Blend is a new, full-featured professional design tool for creating easy-to-use and rich application interfaces based on the Microsoft Windows platform. The primary and final purpose of using it is as a design interface tool that can be applied to WPF. Microsoft Visual Studio can be perfectly combined with Microsoft Expression Blend. Expression Blend automatically generates WPF applications, that is, the displayed interface design can be represented by XAML code. Of course, you can also import Extensible Application Markup Language (XAML) into the Expression Blend design interface.

2. Application of WPF application in actual development projects

Based on the characteristics of WPF and related technologies, this article created a medical assistance system software project. The following describes the basic process of using Microsoft Expression Blend to create a medical assistance system application.

(1) Open Microsoft Expression Blend and create a new project called Balloon.

(2) We entered the workspace of Microsoft Expression Blend, opened the toolbox, added a background (backimage) picture, a balloon (balloonimage) picture, a sliding axis (silder) control, a text (txbfailed) control that prompts the user to fail detection, and

Successful text (txtSucessed) control, moving path ([path]), setting drop-down menu (MenuItem), setting start invalid time (Startinvalid) control and success time (Succeedtimer) control, start button (btnStart) control Wait. In the initial state, the text txbfailed control is visible, and the application program interface is designed.

(3) Microsoft Expression Blend will automatically generate the Windows Presentation Foundation (WPF) application, which is represented by XA code. On the basis of successfully adding many controls, and write the event response code in the code window.

(4) The running effect of the application. When starting the detection, enter the game system interface, click the setting drop-down menu (MenuItem), set the valid values ​​of the start invalid time (Startinvalid) and success time (Succeedtimer) under the drop-down menu, for example, the start invalid time is 2 seconds, The success time is 5 seconds. Click the start button (btnStart), and the sliding axis (silder) moves to the left or right according to the volume of air during blowing. When the air volume is small, the sliding axis (silder) moves to the left and the balloon descends; when the air volume is large, the sliding axis (silder) moves to the right and the balloon rises. When the success time reaches the set valid value, the user is prompted to detect the successful text (txtSucessed); on the contrary, when the success time does not reach the set valid value, the user is prompted to detect the failed text (txbfailed), when the child At the same time as the game is completed, the test is completed. The use of Microsoft Expression Blend technology can make WPF applications more convenient and better completed.

3. Conclusion

WPF brings an epoch-making revolution to the development of Windows applications. It provides a brand-new, fully functional development model. Providing this matching child detection software for enterprise medical equipment can enable children of different ages to overcome restlessness and better cooperate with medical detection, thereby improving the treatment effect and increasing the number of new service groups of enterprise equipment. Open up new medical markets.

  Heavy Duty Connector, also known as HDC, is widely used in construction machinery, textile machinery, packaging and printing machinery, tobacco machinery, robots, rail transit, heat runner, electric power, automation and other equipment requiring electrical and signal connection. The international advanced features of Heavy Duty Connectors in structural design and material usage make the connectors outstanding in electrical performance.The reliability of the electrical connection system can not be achieved by the traditional connection method.

  We developed numerous professional tools for practical use as well as provide effective guarantee for your safe and accurate installation of heavy duty connectors.

Heavy Duty Connector Tool

Crimp Contact,Contact Crimping Tool,Heavy Duty Connector Tool,Heavy Duty Power Connectors

Suzhou WeBest Electronics Technology Co.Ltd , https://www.webestet.com

This entry was posted in on