Esempio n. 1
0
        protected void btnDeleteDupeMake_Click(object sender, EventArgs e)
        {
            int idModelToDelete    = Convert.ToInt32(cmbModelToDelete.SelectedValue, CultureInfo.InvariantCulture);
            int idModelToMergeInto = Convert.ToInt32(cmbModelToMergeInto.SelectedValue, CultureInfo.InvariantCulture);

            lblPreview.Text = String.Join("\r\n", MakeModel.AdminMergeDuplicateModels(idModelToDelete, idModelToMergeInto));

            RefreshDupeModels();
            gvOrphanMakes.DataBind();
            cmbModelToDelete.DataBind();
            cmbModelToMergeInto.DataBind();
            pnlPreview.Visible = false;
        }