private void cmiCopyTo_Click(object sender, EventArgs e) { var f = new frmCopyDataviewTo(); f.Copying = true; var origName = lvDataviews.SelectedItems[0].Tag + string.Empty; f.OriginalDataviewName = origName; f.txtNewDataviewName.Text = origName; if (DialogResult.OK == MainFormPopupForm(f, this, false)) { var newName = f.txtNewDataviewName.Text.Trim(); AdminProxy.CopyDataViewDefinition(origName, newName); MainFormRefreshData(); MainFormUpdateStatus(getDisplayMember("copyTo{done}", "Copied {0} to {1}", origName, newName), true); } }