Exemple #1
0
        private void BindGrid()
        {
            if (this.Id > 0)
            {
                try
                {
                    dataSource = channel.GetCalibrations(this.Id);
                }
                catch (System.Exception ex)
                {
                    logger.LogException(LogLevel.Info, string.Format("WindowCalibration.BindGrid"), ex);
                }
            }
            else
            {
                try
                {
                    dataSource = channel.GetCalibrations();
                }
                catch (System.Exception ex)
                {
                    logger.LogException(LogLevel.Info, string.Format("WindowCalibration.BindGrid"), ex);
                }
            }

            Dispatcher.BeginInvoke(new Action(BindGridUI));
        }