Esempio n. 1
0
        public async void OnClickBtnStart(object sender, RoutedEventArgs e)
        {
            pictureBoxAfter.Source = null;

            btnFileSelect.IsEnabled = false;
            btnAllClear.IsEnabled   = false;
            btnStart.IsEnabled      = false;

            bool bLoadImageResult = await LoadImage();

            if (bLoadImageResult)
            {
                bool bTaskResult = await TaskWorkImageProcessing();

                if (bTaskResult)
                {
                    m_strCurImgName        = ComFunc.GetStringApplicationDataContainer(ComInfo.IMG_TYPE_SELECT_NAME);
                    pictureBoxAfter.Source = await ComFunc.ConvertToSoftwareBitmapSource(SelectGetBitmap(m_strCurImgName));
                }
            }
            btnFileSelect.IsEnabled = true;
            btnAllClear.IsEnabled   = true;
            btnStart.IsEnabled      = true;

            return;
        }