Exemple #1
0
 public EyePiece()
 {
     useStandardEyePiece = false;
     standardEyePiece    = new StandardEyePiece("", "", 25f, 52f);
     xCenter             = 250;
     yCenter             = 250;
     text      = "SW 130 PDS\r\n25 mm Plössl";
     fontSize  = 10;
     crosshair = true;
     radius    = 15;
 }
Exemple #2
0
        private void comboBoxModel_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!standardEyePieces.ContainsKey(comboBoxBrand.SelectedItem.ToString()))
            {
                return;
            }

            int modelIndex = comboBoxModel.SelectedIndex;

            if (modelIndex < 0)
            {
                return;
            }

            //  get data for the selected eyepiece
            StandardEyePiece ep = standardEyePieces[comboBoxBrand.SelectedItem.ToString()][modelIndex];

            numericUpDownApparantFOV.Value = (decimal)ep.apparantFOV;
            numericUpDownFocalLength.Value = (decimal)ep.focalLength;
        }