/// <summary> /// Show a form to fetch edges for hosted-sweep creation, and then create /// the hosted-sweep. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonCreate_Click(object sender, EventArgs e) { HostedSweepCreator creator = comboBoxHostedSweepType.SelectedItem as HostedSweepCreator; CreationData creationData = new CreationData(creator); using (EdgeFetchForm createForm = new EdgeFetchForm(creationData)) { if (createForm.ShowDialog() == DialogResult.OK) { creator.Create(creationData); RefreshListBox(); } } }