Пример #1
0
 public Connection(TcpClient client, KioskServer kiosk)
 {
     this.client = client;
       this.kiosk = kiosk;
       this.reader = new BinaryReader(this.client.GetStream());
       this.writer = new BinaryWriter(this.client.GetStream());
       this.created = DateTime.Now;
       this.haveHeader = false;
 }
Пример #2
0
        private void ControlForm_Load(object sender, EventArgs e)
        {
            SetupForm setupForm = new SetupForm();

              if (setupForm.ShowDialog() != DialogResult.OK)
              {
            Close();
            return;
              }
              else
              {
            this.server = new KioskServer(setupForm.CertificateStorage, setupForm.ServerCertificate);
            this.server.Start();

            this.memberDatabase = setupForm.MemberDatabase;
              }
        }
Пример #3
0
 public TcpServer(KioskServer kiosk)
 {
     this.kiosk = kiosk;
 }