public void Display(ColumnTargetItem item) { update = false; this.ColumnTarget = item; if (item != null) { this.Index = item.columnIndex + 1; } update = true; }
public void AddItemPanel(ColumnTargetItem item, int index, String colName) { ColumnsItems col = new ColumnsItems(index); col.OnRemoveColumnItem += itemPanel_OnRemoveColumn; col.OnSelectColumnItem += itemPanel_OnSelectColumnItem; if (isAutomaticTarget) { col.OnSelectTarget += itemPanel_OnSelectTarget; } this.panel.Children.Add(col); col.comboBoxColunm.SelectedItem = colName; }
public ColumnsItems(ColumnTargetItem item, bool isAutomaticTarget) : this(item) { this.comboBoxOperator.Visibility = isAutomaticTarget ? Visibility.Visible : Visibility.Collapsed; }
public ColumnsItems(ColumnTargetItem item) : this() { InitializeHandlers(); Display(item); }