/**
  *  Choose Tunnel from the database.
  */
 private void btnChooseTunnel_Click(object sender, EventArgs e)
 {
     var dlg = new SelectWorkingFaceDlg();
     if (DialogResult.OK != dlg.ShowDialog()) return;
     var workingFace = dlg.SelectedWorkingFace;
     cbxWorkingface.Items.Add(workingFace);
     cbxWorkingface.SelectedItem = workingFace;
     WriteRecentWorkingFaceXml();
 }
Example #2
0
        /**
         *  Choose Tunnel from the database.
         */
        private void btnChooseTunnel_Click(object sender, EventArgs e)
        {
            var dlg = new SelectWorkingFaceDlg();

            if (DialogResult.OK != dlg.ShowDialog())
            {
                return;
            }
            var workingFace = dlg.SelectedWorkingFace;

            cbxWorkingface.Items.Add(workingFace);
            cbxWorkingface.SelectedItem = workingFace;
            WriteRecentWorkingFaceXml();
        }