2021-09-22 09:09:20 索炜达电子 1410
项目编号:D21
文件大小:5M
源码说明:带中文注释
开发环境:.cs
简要概述:
使用C#编程语言编写PLC上位机软件,本程序使用WPF做界面,C#做逻辑,为了界面美观使用了老外的一个开源皮肤框架,逻辑代码为了和S7-1200通讯使用了行内一位大神的库。
下面来看看界面,再一一介绍下程序框架:
主界面(使用一个win窗口来作为显示,界面左侧有弹出菜单,界面内容通过菜单按钮调用Page来实现界面内容转换)
目录│文件列表:
└ C#+WPF编写S7-1200上位机 含源码+文档
│ 文档.docx
└ NormalizingApp
│ NormalizingApp.sln
└ NormalizingApp
│ App.config
│ App.xaml
│ App.xaml.cs
│ LoginWindow.xaml
│ LoginWindow.xaml.cs
│ MainWindow.xaml
│ MainWindow.xaml.cs
│ NormalizingApp.csproj
│ TextInputBox.xaml
│ TextInputBox.xaml.cs
│ zt.ico
├ Data
│ ├ AccessTemplate
│ │ └ Template.accdb
│ ├ CFG
│ │ └ LoginCFG.ini
│ ├ Name
│ │ └ name.txt
│ ├ Palette
│ │ └ Palette.txt
│ ├ Recipe
│ │ └ DataRecipe.xml
│ ├ UserData
│ │ └ User.accdb
│ └ WorkData
│ └ 2018
│ ├ 201805
│ │ └ 20180507.accdb
│ ├ 201807
│ │ │ 20180706.accdb
│ │ │ 20180719.accdb
│ │ └ 20180723.accdb
│ ├ 201808
│ │ └ 20180804.accdb
│ ├ 201809
│ │ │ 20180904.accdb
│ │ │ 20180905.accdb
│ │ │ 20180911.accdb
│ │ └ 20180912.accdb
│ ├ 201810
│ │ │ 20181012.accdb
│ │ │ 20181028.accdb
│ │ │ 20181030.accdb
│ │ └ 20181031.accdb
│ └ 201811
│ │ 20181101.accdb
│ │ 20181102.accdb
│ │ 20181103.accdb
│ │ 20181105.accdb
│ │ 20181106.accdb
│ │ 20181106.laccdb
│ │ 20181113.accdb
│ └ 20181114.accdb
├ DataBase
│ │ CQServices.cs
│ └ DBHelp.cs
├ dll
│ │ CircularGauge.dll
│ │ Dragablz.dll
│ │ DynamicDataDisplay.dll
│ │ HslCommunication.dll
│ │ Interop.ADOX.dll
│ │ MahApps.Metro.dll
│ │ MaterialDesignColors.dll
│ │ MaterialDesignThemes.MahApps.dll
│ │ MaterialDesignThemes.Wpf.dll
│ │ Newtonsoft.Json.dll
│ └ System.Windows.Interactivity.dll
├ Lib
│ │ AsyncObservableCollection.cs
│ │ BinaryFile.cs
│ │ ControlBinding.cs
│ │ INIFile.cs
│ │ MyValueEvent.cs
│ └ S71KConnect.cs
├ Messagebox
│ │ CMessageBox.cs
│ │ CMessageBoxWindow.xaml
│ └ CMessageBoxWindow.xaml.cs
├ Models
│ │ Alarm.cs
│ │ DataBaseRecord.cs
│ │ MainWindowItem.cs
│ │ MyDataRecipe.cs
│ │ PLCItems.cs
│ └ ProductNumber.cs
├ MVVM
│ │ AnotherCommandImplementation.cs
│ │ MyCommand.cs
│ │ MyCommandGeneric.cs
│ │ MyEventCommand.cs
│ │ NotifyObject.cs
│ └ NotifyPropertyChangedExtension.cs
├ Properties
│ │ AssemblyInfo.cs
│ │ Resources.Designer.cs
│ │ Resources.resx
│ │ Settings.Designer.cs
│ └ Settings.settings
├ Resources
│ │ error.png
│ │ Question.png
│ │ warning.png
│ │ windowsLogo.png
│ └ zt.ico
├ Style
│ └ SliderStyle.xaml
├ ViewModels
│ │ AlarmSystemPageViewModel.cs
│ │ AutoPageViewModel.cs
│ │ CurvePageViewModel.cs
│ │ HomePageViewModel.cs
│ │ LoginWindowViewModel.cs
│ │ MainWindowViewModel.cs
│ │ ManualPageViewModel.cs
│ │ PaletteSelectorViewModel.cs
│ └ TextInputBoxViewModel.cs
└ Views
│ AlarmSystemPage.xaml
│ AlarmSystemPage.xaml.cs
│ AutoPage.xaml
│ AutoPage.xaml.cs
│ CurvePage.xaml
│ CurvePage.xaml.cs
│ DataQueryPage.xaml
│ DataQueryPage.xaml.cs
│ HomePage.xaml
│ HomePage.xaml.cs
│ IORegionControl.xaml
│ IORegionControl.xaml.cs
│ ManualPage.xaml
│ ManualPage.xaml.cs
│ Palette.xaml
│ Palette.xaml.cs
│ SampleProgressDialog.xaml
│ SampleProgressDialog.xaml.cs
│ SystemSet.xaml
│ SystemSet.xaml.cs
│ UserPaletteSelector.xaml
└ UserPaletteSelector.xaml.cs