Exemple #1
0
        public StockSecuritiesExchange()
        {
            InitializeComponent();
            control = new StockMarketController();
            this.stopTradingToolStripMenuItem.Enabled = false;

            //Open connection to the server when click Join
            _userName   = clientName.Text;
            _clientIP   = clientIP.Text;
            _clientPort = Int32.Parse(clientPort.Text);
            _serverIP   = serverIP.Text;
            _serverPort = Int32.Parse(serverPort.Text);
        }
 public void loadControl()
 {
     Mainform = (StockSecuritiesExchange)this.MdiParent;
     control  = (StockMarketController)Mainform.getControl();
 }