Ejemplo n.º 1
0
 private void btnConnect_Click(object sender, EventArgs e)
 {
     Cancelled = false;
     Server    = cboServer.Text;
     Port      = int.Parse(txtPort.Text);
     Scheduler = txtScheduler.Text;
     RegistryStore.AddConnection(new ConnectionInfo {
         ServerName = Server, Port = Port, SchedulerName = Scheduler
     });
     this.Close();
 }
Ejemplo n.º 2
0
 public ServerConnectForm()
 {
     InitializeComponent();
     cboServer.DataSource    = RegistryStore.GetLastConnections();
     cboServer.DisplayMember = "ServerName";
 }