using ScottPlot.Plottables; using SunlightCentralizedControlManagement_SCCM_.EX; using SunlightCentralizedControlManagement_SCCM_.WindowsView; using System; using System.Collections.Generic; using System.ComponentModel; 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.Animation; using System.Windows.Media.Imaging; using System.Windows.Media.Media3D; using System.Windows.Navigation; using System.Windows.Shapes; using System.Windows.Threading; namespace SunlightCentralizedControlManagement_SCCM_.UserControls { /// /// info.xaml 的交互逻辑 /// public partial class DispenseMacInfo : UserControl { public DispenseMacInfo() { InitializeComponent(); } private void State_Click(object sender, RoutedEventArgs e)//状态 { if (mlock.Visibility == Visibility.Visible) { MessageBox.Show(Properties.Resources.Not_a,"Dispense",MessageBoxButton.OK); return; } UserMessage userMessage = new UserMessage(); userMessage.DispenseMacInfo(mac.Text, macg.Text); userMessage.Show(); } private void Manual_Click(object sender, RoutedEventArgs e)//手动呼叫 { if (mlock.Visibility == Visibility.Visible) { MessageBox.Show(Properties.Resources.Not_a, "Dispense", MessageBoxButton.OK); return; } ManualDyelot manualDyelot = new ManualDyelot(); manualDyelot.MAC(mac.Text,Convert.ToInt16(type_.Text)); manualDyelot.Show(); } private void Screen_Click(object sender, RoutedEventArgs e)//远程画面 { if (mlock.Visibility == Visibility.Visible) { MessageBox.Show(Properties.Resources.Not_a, "Dispense", MessageBoxButton.OK); return; } } } }