private void UserControl_Station_SensorChanged(object sender, UserControl_StationOrganiseMain.SensorChangedEventArgs e)
        {
            if (e.SensorNumber == UserControl_StationOrganiseMain.SensorChangedEvent.One)
            {
                Sensor = userControl_StationOrganiseMain1.Sensor1;
                selectedIDInstrument = userControl_StationOrganiseMain1.SensorIndex1;

                fillParamerter();
            }
        }
        private void UserControl_Station_StationChanged(object sender, UserControl_StationOrganiseMain.StationChangedEventArgs e)
        {
            if (e.Status == UserControl_StationOrganiseMain.StationChangedEvent.New ||
                e.Status == UserControl_StationOrganiseMain.StationChangedEvent.Change)
            {
                _Station = userControl_StationOrganiseMain1.Station;
                userControl_RingLaserOrientation1.SiteLocation = new UserControl_RingLaserOrientation.Coordinates(_Station.Location.Latitude, _Station.Location.Longitude);

                Sensor = null;
                selectedIDInstrument = -1;

                fillParamerter();

                richTextBox1.Clear();
            }
            else if (e.Status == UserControl_StationOrganiseMain.StationChangedEvent.Modify)
            {
                _Station = userControl_StationOrganiseMain1.Station;
                userControl_RingLaserOrientation1.SiteLocation = new UserControl_RingLaserOrientation.Coordinates(_Station.Location.Latitude, _Station.Location.Longitude);

                fillParamerter();
            }
        }
        public RingLaser_NominalSagnacFrequencyPrediction()
        {
            if (StationName != null)
            {
                _Station = Station.deserialisieren(FilePathEnvironment.pathStations + StationName);
                Sensor   = _Station.SensorDataItems[selectedIDInstrument];
            }

            InitializeComponent();

            // Set the titles and axis labels
            myPane1 = zedGraphControl1.GraphPane;

            myPane1.Title.Text                = "";
            myPane1.XAxis.Title.Text          = "alpha [°]";
            myPane1.XAxis.MajorGrid.IsVisible = true;
            myPane1.XAxis.MajorGrid.Color     = Color.LightGray;
            myPane1.XAxis.MajorGrid.DashOn    = 10;
            myPane1.XAxis.MajorGrid.DashOff   = 0;
            myPane1.XAxis.MinorGrid.IsVisible = true;
            myPane1.XAxis.MinorGrid.Color     = Color.LightGray;
            myPane1.XAxis.MinorGrid.DashOn    = 10;
            myPane1.XAxis.MinorGrid.DashOff   = 0;
            myPane1.XAxis.Scale.Min           = 0;
            myPane1.XAxis.Scale.Max           = 360;
            myPane1.XAxis.Scale.MajorStep     = 60;

            myPane1.YAxis.Title.Text          = "Sagnac-frequency [Hz]";
            myPane1.YAxis.MajorGrid.IsVisible = true;
            myPane1.YAxis.MajorGrid.Color     = Color.LightGray;
            myPane1.YAxis.MajorGrid.DashOn    = 10;
            myPane1.YAxis.MajorGrid.DashOff   = 0;
            myPane1.YAxis.MinorGrid.IsVisible = true;
            myPane1.YAxis.MinorGrid.Color     = Color.LightGray;
            myPane1.YAxis.MinorGrid.DashOn    = 10;
            myPane1.YAxis.MinorGrid.DashOff   = 0;
            myPane1.YAxis.Scale.Min           = 0;

            zedGraphControl1.AxisChange();
            zedGraphControl1.Invalidate();

            myPane2 = zedGraphControl2.GraphPane;

            myPane2.Title.Text                = "";
            myPane2.XAxis.Title.Text          = "Longitude [°]";
            myPane2.XAxis.MajorGrid.IsVisible = true;
            myPane2.XAxis.MajorGrid.Color     = Color.LightGray;
            myPane2.XAxis.MajorGrid.DashOn    = 10;
            myPane2.XAxis.MajorGrid.DashOff   = 0;
            myPane2.XAxis.MinorGrid.IsVisible = true;
            myPane2.XAxis.MinorGrid.Color     = Color.LightGray;
            myPane2.XAxis.MinorGrid.DashOn    = 10;
            myPane2.XAxis.MinorGrid.DashOff   = 0;
            myPane2.XAxis.Scale.Min           = 0;
            myPane2.XAxis.Scale.Max           = 360;
            myPane2.XAxis.Scale.MajorStep     = 60;

            myPane2.YAxis.Title.Text          = "Latitude [°]";
            myPane2.YAxis.MajorGrid.IsVisible = true;
            myPane2.YAxis.MajorGrid.Color     = Color.LightGray;
            myPane2.YAxis.MajorGrid.DashOn    = 10;
            myPane2.YAxis.MajorGrid.DashOff   = 0;
            myPane2.YAxis.MinorGrid.IsVisible = true;
            myPane2.YAxis.MinorGrid.Color     = Color.LightGray;
            myPane2.YAxis.MinorGrid.DashOn    = 10;
            myPane2.YAxis.MinorGrid.DashOff   = 0;
            myPane2.YAxis.Scale.Min           = -90;
            myPane2.YAxis.Scale.Max           = 90;

            zedGraphControl2.AxisChange();
            zedGraphControl2.Invalidate();

            userControl_StationOrganiseMain1.SensorType1 = SensorTypes.Type.SagnacFrequency;

            userControl_StationOrganiseMain1.StationChanged += new UserControl_StationOrganiseMain.StationChangedHandler(UserControl_Station_StationChanged);
            userControl_StationOrganiseMain1.SensorChanged  += new UserControl_StationOrganiseMain.SensorChangedHandler(UserControl_Station_SensorChanged);

            userControl_StationOrganiseMain1.Station      = _Station;
            userControl_StationOrganiseMain1.SensorIndex1 = selectedIDInstrument;

            fillParamerter();
        }