Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- using ModbusDemo.Model;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- 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;
-
- namespace ModbusDemo.VIew
- {
- /// <summary>
- /// SettingsUC.xaml 的交互逻辑
- /// </summary>
- public partial class SettingsUC : UserControl
- {
- private ModbusDbContext _ModbusDbContext;
- public SettingsUC(ModbusDbContext ModbusDbContext)
- {
- InitializeComponent();
- _ModbusDbContext = ModbusDbContext;
- }
-
- private void Button_Click(object sender, RoutedEventArgs e)
- {
- ModbusLog m = new ModbusLog();
- m.OperationType = "read";
- m.ResponseData = "0120";
- m.RequestData = "8888";
-
-
-
- _ModbusDbContext.Add(m);
-
- _ModbusDbContext.SaveChanges();
-
-
- }
- }
- }
|