Exemplo n.º 1
0
        void MergesRetrieved(IAsyncResult result)
        {
            MergeSources      mergeSourcesCallback = result.AsyncState as MergeSources;
            ICollection <Uri> mergeSources         = (mergeSourcesCallback != null)
                ? mergeSourcesCallback.EndInvoke(result)
                : new Uri[0];

            SetMergeSources(mergeSources);
        }
Exemplo n.º 2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode)
            {
                return;
            }

            mergeFromComboBox.Text = MergeTarget.Uri.ToString();

            MergeSources retrieveMergeSources = new MergeSources(RetrieveMergeSources);

            IAsyncResult mergeRetrieveResult = retrieveMergeSources.BeginInvoke(new AsyncCallback(MergesRetrieved), retrieveMergeSources);

            wcPath.Text = MergeTarget.FullPath;
            wcUri.Text  = MergeTarget.Uri.ToString();
        }
Exemplo n.º 3
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (DesignMode)
                return;

            mergeFromComboBox.Text = MergeTarget.Uri.ToString();

            MergeSources retrieveMergeSources = new MergeSources(RetrieveMergeSources);

            IAsyncResult mergeRetrieveResult = retrieveMergeSources.BeginInvoke(new AsyncCallback(MergesRetrieved), retrieveMergeSources);

            wcPath.Text = MergeTarget.FullPath;
            wcUri.Text = MergeTarget.Uri.ToString();
        }