/// <summary> /// /// </summary> /// <param name="state"></param> /// <param name="description"></param> /// <param name="value"></param> /// <param name="max"></param> public void Progress([In] object state, [In] object description, [In] object value, [In] object max) { if (!Validate("Progress")) { Invoker.ReleaseParamsArray(state, description, value, max); return; } NetOffice.OutlookApi.Enums.OlSyncState newState = (NetOffice.OutlookApi.Enums.OlSyncState)state; string newDescription = ToString(description); Int32 newValue = ToInt32(value); Int32 newMax = ToInt32(max); object[] paramsArray = new object[4]; paramsArray[0] = newState; paramsArray[1] = newDescription; paramsArray[2] = newValue; paramsArray[3] = newMax; EventBinding.RaiseCustomEvent("Progress", ref paramsArray); }
public void Progress([In] object state, [In] object description, [In] object value, [In] object max) { Delegate[] recipients = _eventBinding.GetEventRecipients("Progress"); if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0)) { Invoker.ReleaseParamsArray(state, description, value, max); return; } NetOffice.OutlookApi.Enums.OlSyncState newState = (NetOffice.OutlookApi.Enums.OlSyncState)state; string newDescription = Convert.ToString(description); Int32 newValue = Convert.ToInt32(value); Int32 newMax = Convert.ToInt32(max); object[] paramsArray = new object[4]; paramsArray[0] = newState; paramsArray[1] = newDescription; paramsArray[2] = newValue; paramsArray[3] = newMax; _eventBinding.RaiseCustomEvent("Progress", ref paramsArray); }