protected override void ExecuteCore(SelectedItemCollection selection) { foreach (SR sr in selection.AsXenObjects <SR>(CanExecute)) { SrShareAction action = new SrShareAction(sr.Connection, sr); ActionProgressDialog dialog = new ActionProgressDialog(action, ProgressBarStyle.Marquee); dialog.ShowCancel = true; dialog.ShowDialog(Parent); } }
protected override void ExecuteCore(SelectedItemCollection selection) { foreach (SR sr in selection.AsXenObjects<SR>(CanExecute)) { SrShareAction action = new SrShareAction(sr.Connection, sr); ActionProgressDialog dialog = new ActionProgressDialog(action, ProgressBarStyle.Marquee); dialog.ShowCancel = true; dialog.ShowDialog(Parent); } }