Пример #1
0
        void ButtonXML_Click(object sender, EventArgs e)
        {
            bool thumbnailsexist = ThumbnailsAvailable(_asset);

            if (!thumbnailsexist)
            {
                if (analysisJobSubmitted)
                {
                    MessageBox.Show("Please wait for the analysis job to complete", "Thumbnails", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }

                if (MessageBox.Show("There is no detected thumbnails for this asset.\n\nDo you want to submit an analysis job now to generate the thumbnails and metadata ?", "No thumbnails", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    _main.DoAnalyzeAssets(new List <IAsset>()
                    {
                        _asset
                    }, false);
                    analysisJobSubmitted = true;
                }
                else
                {
                    return;
                }
            }
            else
            {
                analysisJobSubmitted = false;
                this.Cursor          = Cursors.WaitCursor;
                myRegionEditor.Display();
                this.Cursor = Cursors.Arrow;
                OnChanged(EventArgs.Empty);
            }
        }