コード例 #1
0
        private void RibbonButtonDisableCalibration_Click_1(object sender, RoutedEventArgs e)
        {
            if (LastSelected == null)
            {
                return;
            }

            if (LastSelected.IsEnabled == true)
            {
                try
                {
                    if (channel.DisableCalibration(LastSelected.CalibrationId))
                    {
                        BindGridAsync();
                    }
                }
                catch (System.Exception ex)
                {
                    logger.LogException(LogLevel.Info, string.Format("WindowCalibration.RibbonButtonDisableCalibration_Click_1"), ex);
                }
            }
        }