void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\..\WPF\WpfAsyncProgress.xaml" ((BMC.CoreLib.WPF.WpfAsyncProgress)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden #line 10 "..\..\..\..\WPF\WpfAsyncProgress.xaml" ((BMC.CoreLib.WPF.WpfAsyncProgress)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.axAsyncProgress = ((BMC.CoreLib.WPF.AxWpfAsyncProgress)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Updates the status progress. /// </summary> /// <param name="value">The value.</param> /// <param name="statusText">The status text.</param> public void UpdateStatusProgress(int value, string statusText) { ApplicationManager.SyncSend((o) => { AxWpfAsyncProgress pThis = (AxWpfAsyncProgress)o; if (value >= _minimum && value < _maximum) { pThis.prgStatus.Value = value; } pThis.lblStatus.Text = statusText; }, this); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\WPF\WpfAsyncProgress.xaml" ((BMC.CoreLib.WPF.WpfAsyncProgress)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden #line 10 "..\..\..\WPF\WpfAsyncProgress.xaml" ((BMC.CoreLib.WPF.WpfAsyncProgress)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.axAsyncProgress = ((BMC.CoreLib.WPF.AxWpfAsyncProgress)(target)); return; } this._contentLoaded = true; }