Пример #1
0
        private void InitConnect()
        {
            var connectModel = new ConnectModel();

            new ConnectForm(connectModel).ShowDialog();

            if (connectModel.Success)
            {
                msConnect.Enabled = false;
                AppCore.Server.Host(connectModel.IP, connectModel.Port);
            }
        }
Пример #2
0
 public ConnectForm(ConnectModel model)
 {
     _Model = model;
     InitializeComponent();
 }