Beispiel #1
0
        //public RemoteControl(Stand stand, string ip, int port)
        //{
        //    this.stand = stand;
        //    reqHandler = new ReqHandler(this);
        //    server = new Server(reqHandler, 1, 10000);
        //    if (!IPAddress.TryParse(ip, out address))
        //        address = IPAddress.Parse("127.0.0.1");
        //    this.port = port;
        //    stand.StopEvent += Stand_ProcessComplete;
        //}

        public RemoteControl(Stand stand, string ip, int port, Encoding encoding)
        {
            this.stand = stand;
            reqHandler = new ReqHandler(this);
            server     = new Server(reqHandler, 1, 10000, encoding);
            if (!IPAddress.TryParse(ip, out address))
            {
                address = IPAddress.Parse("127.0.0.1");
            }
            this.port        = port;
            stand.StopEvent += Stand_ProcessComplete;
        }
Beispiel #2
0
 public MainVM()
 {
     stand    = new Stand();
     settings = stand.Settings;
     settings.UpdSettingsEvent        += UpdSettings_event;
     stand.UpdRowsTypesEvent          += UpdRowsTypes_event;
     stand.UpdProductInfoEvent        += UpdProductInfo_event;
     stand.UpdTestResultEvent         += UpdTestResult_event;
     stand.UpdateMeasurmendIndicators += UpdIndicators_event;
     stand.ProgressEvent    += Progress_event;
     stand.ContinueRequest  += NextStepRequest_event;
     stand.SelectionRequest += SelectedRequest_event;
     stand.ProcessComplete  += ProcessComplete_event;
     stand.SystemStatus.ChangeSysStatusEvent          += SystemStatus_ChangeSysStatusEvent;
     stand.SystemStatus.ChangeConnectPressSystemEvent += SystemStatus_ChangeConnectPressSystemEvent;
     stand.RemoteStartEvent += Stand_RemoteStartEvent;
     stand.StopEvent        += Stand_RemoteStopEvent;
     ControlsToStopMode();
     StandInit();
 }