Exemple #1
0
        protected void Binding_Delete(object sender, DataGridCommandEventArgs e)
        {
            BindingTemplate binding = bindings[e.Item.ItemIndex];
            string          name;

            if (null != binding.AccessPoint)
            {
                name = binding.AccessPoint.Value;
            }
            else
            {
                name = Localization.GetString("HEADING_BINDING");
            }

            string key = binding.BindingKey;

            //
            // The user has not yet confirmed the delete operation, so display
            // a confirmation dialog.
            //
            string message = String.Format(
                Localization.GetString("TEXT_DELETE_CONFIRMATION"),
                name);

            Page.RegisterStartupScript(
                "Confirm",
                ClientScripts.Confirm(
                    message,
                    "editbinding.aspx?frames=" + (frames ? "true" : "false") + "&key=" + key + "&mode=delete&confirm=true&tab=1"));
        }
        protected void Service_Delete(object sender, DataGridCommandEventArgs e)
        {
            string name = bindableServices[e.Item.ItemIndex].Names[0].Value;
            string key  = bindableServices[e.Item.ItemIndex].ServiceKey;

            //
            // The user has not yet confirmed the delete operation, so display
            // a confirmation dialog.
            //
            string message = String.Format(
                Localization.GetString("TEXT_DELETE_CONFIRMATION"),
                name);

            Page.RegisterStartupScript(
                "Confirm",
                ClientScripts.Confirm(
                    message,
                    "editservice.aspx?frames=" + (frames ? "true" : "false") + "&key=" + key + "&mode=delete&confirm=true&tab=1"));
        }
Exemple #3
0
        protected void InstanceInfo_Delete(object sender, DataGridCommandEventArgs e)
        {
            int index = e.Item.ItemIndex;

            string name = Lookup.TModelName(instanceInfos[index].TModelKey);
            string key  = parent.BindingKey;

            //
            // The user has not yet confirmed the delete operation, so display
            // a confirmation dialog.
            //
            string message = String.Format(
                Localization.GetString("TEXT_DELETE_CONFIRMATION"),
                name);

            Page.RegisterStartupScript(
                "Confirm",
                ClientScripts.Confirm(
                    message,
                    "editinstanceinfo.aspx?frames=" + (frames ? "true" : "false") + "&key=" + key + "&index=" + index + "&mode=delete&confirm=true&tab=1"));
        }