public ColumnObject(string name, bool enabled, string bindingName, int index, DataGrid datagridOwner, MainScreenViewModel viewModel) { initializing = true; Name = name; BindingName = bindingName; DataGridOwner = datagridOwner; Index = index; Enabled = enabled; initializing = false; }
public ColumnObject(ColumnListItem columnItem, DataGrid datagridOwner, MainScreenViewModel viewModel) { initializing = true; Name = columnItem.Name; DisplayIndexBindingName = columnItem.DisplayIndexBindingName; BindingName = columnItem.DataBindingName; DataGridOwner = datagridOwner; Index = columnItem.Index; Enabled = columnItem.Enabled; this.viewModel = viewModel; initializing = false; }