Esempio n. 1
0
        public MainWindowViewModel()
        {
            HelpModel = new HelpModel();
            HelpModel.HelpDataContext();

            RecvModel = new RecvModel();
            RecvModel.RecvDataContext();

            SendModel = new SendModel();
            SendModel.SendDataContext();

            SerialPortModel = new SerialPortModel();
            SerialPortModel.SerialPortDataContext();

            DepictInfo = "串行端口调试助手";

            TimerModel = new TimerModel();
            TimerModel.TimerDataContext();

            HexSend  = false;
            AutoSend = false;
            InitAutoSendTimer();

            SaveRecv = false;
        }
Esempio n. 2
0
        public MainWindowViewModel()
        {
            TCPServerModel = new TCPServerModel();
            TCPServerModel.TCPServerDataContext();

            TCPClientModel = new TCPClientModel();
            TCPClientModel.TCPClientDataContext();

            UDPServerModel = new UDPServerModel();
            UDPServerModel.UDPServerDataContext();

            UDPClientModel = new UDPClientModel();
            UDPClientModel.UDPClientDataContext();

            SendModel = new SendModel();
            SendModel.SendDataContext();

            RecvModel = new RecvModel();
            RecvModel.RecvDataContext();

            TimerModel = new TimerModel();
            TimerModel.TimerDataContext();

            HelpModel = new HelpModel();
            HelpModel.HelpDataContext();

            TCPServerHexSend  = false;
            TCPServerSaveRecv = false;
            TCPServerAutoSend = false;
            TCPServerInitAutoSendTimer();

            TCPClientHexSend  = false;
            TCPClientSaveRecv = false;
            TCPClientAutoSend = false;
            TCPClientInitAutoSendTimer();

            UDPServerHexSend  = false;
            UDPServerSaveRecv = false;
            UDPServerAutoSend = false;
            UDPServerInitAutoSendTimer();

            UDPClientHexSend  = false;
            UDPClientSaveRecv = false;
            UDPClientAutoSend = false;
            UDPClientInitAutoSendTimer();

            DepictInfo = string.Format(cultureInfo, "网络端口调试助手");
        }