private void PerformAction(BaseHardCodedString stringInstance) { ExtractToResourceActionSite site = new ExtractToResourceActionSite(stringInstance); if (site.ActionObject != null) { RefactorStringDialog dialog = new RefactorStringDialog(); dialog.ShowDialog(site); } else { MessageBox.Show(Strings.UnsupportedFile, Strings.WarningTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public void PerformAction(Common.BaseHardCodedString stringInstance) { ExtractToResourceActionSite site = new ExtractToResourceActionSite(stringInstance); if (site.ActionObject != null) { RefactorStringDialog dialog = new RefactorStringDialog(); dialog.ShowDialog(site); } else { MessageBox.Show( Strings.UnsupportedFile, Strings.WarningTitle, MessageBoxButtons.OK, MessageBoxIcon.Error); } }