/// <summary> /// Spawn a dialog to edit an existing ExposedWebsite.Website /// </summary> private void SupportedSites_MouseDoubleClick(object sender, MouseEventArgs e) { var index = SupportedSites.IndexFromPoint(e.Location); if (index != ListBox.NoMatches) { var addWebsiteDialogue = new AddWebsiteDialogue(supportedSites, supportedSites.ElementAt(index)); addWebsiteDialogue.Show(); } }
/// <summary> /// Spawn a dialog to create a new ExposedWebsite.Website /// </summary> private void AddWebsiteButton_Click(object sender, EventArgs e) { var addWebsiteDialogue = new AddWebsiteDialogue(supportedSites); addWebsiteDialogue.Show(); }