Exemplo n.º 1
0
        private CryptoSystem()
        {
            _formCount      = 0;
            master          = new Master();
            master.Closed  += new EventHandler(OnFormClosed);
            master.Closing += new CancelEventHandler(OnFormClosing);
            _formCount++;

            slave          = new Slave();
            slave.Closed  += new EventHandler(OnFormClosed);
            slave.Closing += new CancelEventHandler(OnFormClosing);
            _formCount++;

            master.setSlave(slave);
            slave.setMaster(master);

            master.Show();
            slave.Show();
        }
Exemplo n.º 2
0
 public void setSlave(Slave slave)
 {
     slaveForm = slave;
 }