private void CheckLicense() { SelectControls(_searchCriterion); if (lV_searchResult.SelectedItems.Count > 0) { if (lV_searchResult.SelectedItems[0].Tag is BlueFlame.Classes.DatabaseObjects.License) { string key = (lV_searchResult.SelectedItems[0].Tag as BlueFlame.Classes.DatabaseObjects.License).Key; CheckLicense checkDialog = new CheckLicense(key); checkDialog.ShowDialog(); } } }
private void tSMI_checkLicense_Click(object sender, EventArgs e) { CheckLicense checkLicenseDialog = new CheckLicense(); checkLicenseDialog.ShowDialog(); }