async void OnSceneCompleted(ReCapPhotosceneResponse response)
        {
            var sceneWithInfo = await RetrieveSceneInfo(
                response.Photoscene.PhotosceneId);

            string id = response.Photoscene.PhotosceneId;

            if (_progressMap.ContainsKey(id))
            {
                _progressMap[id].Close();

                _progressMap.Remove(id);
            }

            if (sceneWithInfo != null)
            {
                OnLogMessage("Scene completed: " +
                             sceneWithInfo.SceneName);

                var node = GetNodeById(id);

                if (node != null)
                {
                    node.Photoscene = sceneWithInfo;
                }
                else
                {
                    RootNode.AddNode(
                        new ReCapTreeItem(
                            sceneWithInfo,
                            Properties.Resources.file));
                }
            }
        }
Exemple #2
0
        void OnProgressChange(ReCapPhotosceneResponse response)
        {
            string progress = response.Photoscene.Progress.ToString("F2") + " %";

            this.Text = "Photoscene Progress - " + progress;

            labelStatus.Text = response.Photoscene.ProgressMsg;

            progressBar.Value     = (int)(response.Photoscene.Progress * 100);
            progressBar.LabelText = progress;
        }
Exemple #3
0
        void OnProgressChange(ReCapPhotosceneResponse response)
        {
            string progress = response.Photoscene.Progress.ToString("F2") + " %";

            this.Title = "Photoscene Progress - " + progress;

            _lbProgress.Content = response.Photoscene.ProgressMsg;

            _progressBar.Value = response.Photoscene.Progress;
            //_progressBar.LabelText = progress;
        }
        async void OnSceneCompleted(ReCapPhotosceneResponse response)
        {
            var sceneWithInfo = await RetrieveSceneInfo(
                response.Photoscene.PhotosceneId);

            string id = response.Photoscene.PhotosceneId;

            if (_progressMap.ContainsKey(id))
            {
                _progressMap[id].Close();

                _progressMap.Remove(id);
            }

            if (sceneWithInfo != null)
            {
                LogMessage("Scene completed: " +
                           sceneWithInfo.SceneName);

                var root = _TreeViewScenes.Nodes[0];

                if (root.Nodes.ContainsKey(id))
                {
                    var node = root.Nodes[id];

                    node.Tag = sceneWithInfo;
                }
                else
                {
                    TreeNode node =
                        root.Nodes.Add(
                            sceneWithInfo.PhotosceneId,
                            sceneWithInfo.SceneName,
                            2, 2);

                    node.Tag = sceneWithInfo;
                }
            }
        }