Exemple #1
0
        private void RibbonButtonDeleteCalibration_Click_1(object sender, RoutedEventArgs e)
        {
            if (LastSelected == null)
            {
                return;
            }

            //TODO DialogBox

            try
            {
                if (channel.DeleteCalibration(LastSelected.CalibrationId))
                {
                    BindGridAsync();
                }
            }
            catch (System.Exception ex)
            {
                logger.LogException(LogLevel.Info, string.Format("WindowCalibration.RibbonButtonDeleteCalibration_Click_1"), ex);
            }
        }