void MergesRetrieved(IAsyncResult result) { MergeSources mergeSourcesCallback = result.AsyncState as MergeSources; ICollection <Uri> mergeSources = (mergeSourcesCallback != null) ? mergeSourcesCallback.EndInvoke(result) : new Uri[0]; SetMergeSources(mergeSources); }
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(); }
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(); }