예제 #1
0
        private void DeleteConditionalZone(ColumnDisplay.DeleteColumnEventArgs e)
        {
            int zoneIndexToDelete = e.Index;
            if (zoneIndexToDelete >= this.SelectedZone)
            {
                this.SelectedZone = 0;
            }
            _host.RemoveColumn(e.Guid);

            TargetedContent.PageData.Zones[0].Columns.RemoveAll(c => c.Guid == e.Guid);
            TargetedContent.Segments.RemoveAt(zoneIndexToDelete);

            LoadTargetConfigurationData();

            if (_host.GetColumns().Count == 0)
            {
                AddConditionalZone();
            }

            RefreshColumns();
        }
예제 #2
0
 /// <summary>
 /// Deletes a segment zone from the current Targeted Content Configuration.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void DeleteConditionalZone(object sender, ColumnDisplay.DeleteColumnEventArgs e)
 {
     DeleteConditionalZone(e);
 }