コード例 #1
0
 /**
  *  Choose Tunnel from the database.
  */
 private void btnChooseTunnel_Click(object sender, EventArgs e)
 {
     var dlg = new SelectTunnelDlg();
     if (DialogResult.OK != dlg.ShowDialog()) return;
     var tunnel = dlg.selected_tunnel;
     cbxTunnel.Items.Add(tunnel);
     cbxTunnel.SelectedItem = tunnel;
     WriteRecentTunnelXml();
 }
コード例 #2
0
        /**
         *  Choose tunnel from the database.
         */
        private void btnChooseTunnel_Click(object sender, EventArgs e)
        {
            var dlg = new SelectTunnelDlg();

            if (DialogResult.OK != dlg.ShowDialog())
            {
                return;
            }
            var tunnel = dlg.SelectedTunnel;

            cbxTunnel.Items.Add(tunnel);
            cbxTunnel.SelectedItem = tunnel;
            WriteRecentTunnelXml();
        }