Beispiel #1
0
        void insertPointButton_Click(object sender, EventArgs e)
        {
            var cachedPoint = Graph.PointToAdd;

            if (cachedPoint != null)
            {
                var form = new PlacePointForm(cachedPoint, Config.PEAK_NUMBER);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    int i = form.PointNumber;
                    if (i != -1)
                    {
                        _rows[i].setValues(form.PointToAdd);
                    }
                }
            }
            else
            {
                MessageBox.Show("Выберите сначала точку на графике спектра", "Ошибка");
            }
        }
 void insertPointButton_Click(object sender, EventArgs e)
 {
     var cachedPoint = Graph.PointToAdd;
     if (cachedPoint != null) {
         var form = new PlacePointForm(cachedPoint, Config.PEAK_NUMBER);
         if (form.ShowDialog() == DialogResult.OK) {
             int i = form.PointNumber;
             if (i != -1)
                 _rows[i].setValues(form.PointToAdd);
         }
     } else {
         MessageBox.Show("Выберите сначала точку на графике спектра", "Ошибка");
     }
 }