public void LoadDataSources(Action<ActionBase> completedEventHandler) { if (XenObject == null) return; GetDataSourcesAction action = new GetDataSourcesAction(XenObject.Connection, XenObject); action.Completed += completedEventHandler; action.RunAsync(); }
public void LoadDataSources(EventHandler<EventArgs> completedEventHandler) { if (XenObject == null) return; GetDataSourcesAction action = new GetDataSourcesAction(XenObject.Connection, XenObject); action.Completed += new EventHandler<EventArgs>(completedEventHandler); action.RunAsync(); }