private void ButtonSave_Click_1(object sender, RoutedEventArgs e)
        {
            int id = (int)ComboBoxTitles.SelectedValue;
            CalibrationOperation calibrationOperation = CalibrationOperation.Jam;

            if (ComboBoxCalibrationOperation.SelectedIndex == 0)
            {
                calibrationOperation = CalibrationOperation.Jam;
            }
            else if (ComboBoxCalibrationOperation.SelectedIndex == 1)
            {
                calibrationOperation = CalibrationOperation.Zarb;
            }

            double value = (double)NumericUpDownValue.Value;

            if (value == 0)
            {
                DialogBoxOk dialogBoxOk = new DialogBoxOk();
                dialogBoxOk.Message = "مقدار کالیبره نمی تواند ۰ باشد";
                dialogBoxOk.Width   = 300;
                dialogBoxOk.Height  = 120;
                dialogBoxOk.ShowDialog();
                return;
            }

            try
            {
                if (channel.AddNewCalibration(id, calibrationOperation, value))
                {
                    OnNewCalibrationAdded(new EventArgs());
                    NumericUpDownValue.Value = 0;
                }
            }
            catch (System.Exception ex)
            {
                logger.LogException(LogLevel.Info, string.Format("WindowNewCalibration.ButtonSave_Click_1"), ex);
            }
        }