You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

73 lines
2.4 KiB

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
{
/// <summary>
/// info.xaml 的交互逻辑
/// </summary>
public partial class DispenseMacInfo : UserControl
{
public DispenseMacInfo()
{
InitializeComponent();
}
private void State_Click(object sender, RoutedEventArgs e)//状态
{
if ((mlock.Visibility == Visibility.Visible) || (Disconnect.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) || (Disconnect.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)||(Disconnect.Visibility == Visibility.Visible))
{
MessageBox.Show(Properties.Resources.Not_a, "Dispense", MessageBoxButton.OK);
return;
}
VNC screen = new VNC();
screen.Parameter(IP.Text,PORT.Text,USER.Text,PASSWD.Text);
screen.Show();
}
}
}