public ConfirmChangeWindow(IMarket m, IOrder order, MainWindowClient windowClient, string message1, string message2, string caption)
 {
     InitializeComponent();
     _market       = m;
     _order        = order;
     _message1     = message1;
     _message2     = message2;
     _caption      = caption;
     _windowClient = windowClient;
 }
        private void OpenMainWindow()
        {
            Hide();

            _mainWindow = new MainWindowClient(_user, _market)
            {
                FormBorderStyle = FormBorderStyle.FixedSingle
            };

            ClientNotify r = (ClientNotify)RemotingServices.Connect(typeof(ClientNotify), "tcp://localhost:" + _port.ToString() + "/ClientNotify");    // connect to the registered my remote object here

            r.PutMyForm(_mainWindow);
            _mainWindow.ShowDialog();
            Close();
        }
Beispiel #3
0
 public void PutMyForm(MainWindowClient form)
 {
     _win = form;
 }