public Plate_Window() { InitializeComponent(); timer_PlateLink = new System.Threading.Timer(PlateTimeLink, null, TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(10)); OnLineLable.BackColor = Color.DarkRed; Plate_.PlateCallBack = new Action <string, uint>(PlateCallBack); PlateStar += Plate_.CallbackFuntion; Plate_.GetmessageAction = new Action <string>(Message); Plate_.PlateDataCallBack = new Action <string, string, string, string>(PlateDataInfoOut); Plate_.JpegCallBack = new Action <byte[]>(JpegCallBack); Plate_.DataJpegCallBack = new Action <byte[]>(DataJpeg); setRelayClose += Plate_.SetRelayClose; PlateSettiger += Plate_.SetTrigger; PlateQuitDevice += Plate_.QuitDevice; PlayAction = new Action <bool>(Plate_.Play); Send485Action = new Action <string>(Plate_.RS485Send); SetIpAction = new Action <string>(Plate_.SetIpNetwork); SetSaveImg = new Action <string>(Plate_.SetSavrImagePath); PlateSearchDevice += Plate_.SearchDeviceList; PlateIpTextBox.Text = Properties.Settings.Default.PlateIPAddr; PlatePortTextBox.Text = Properties.Settings.Default.PlatePort.ToString(); PlateSetIp(); PlateSetPath(); LinkButton.Hide(); AbortButton.Hide(); TiggerButton.Hide(); LinkButton.Hide(); LiftingButton.Hide(); TransmissionButton.Hide(); SearchButton.Hide(); SetIpButton.Hide(); SetPathButton.Hide(); OpenButton.Hide(); CloseButton.Hide(); OnLineLable.Hide(); }