public CustomColumn(CustomColumn org, Visibility showDebitCredit, bool header) { this.header = header; this.amount = org.amount; this.index = org.index; ShowDebitCredit = showDebitCredit; ShowAmount = ShowDebitCredit == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible; }
public CustomColumn(CustomColumn org, Visibility showDebitCredit, bool hide, int aWidth, bool header) : this(org, showDebitCredit, header) { AmountWidth = (aWidth * 2); if (hide) { ShowDebitCredit = ShowAmount = Visibility.Collapsed; } }