/// ------------------------------------------------------------------------------------ public FeaturesDlgBase(FeaturesDlgViewModel viewModel, FeatureListViewBase listView) : this() { _viewModel = viewModel; _listView = listView; BuildPhoneGrid(); _buttonReset.Margin = new Padding(0, btnOK.Margin.Top, 0, btnOK.Margin.Bottom); tblLayoutButtons.Controls.Add(_buttonReset, 0, 0); _labelDistinctiveFeaturesSetValue.Text = GetDistinctiveFeaturesSetName(); _listView.BackColor = Color.White; _listView.ForeColor = Color.Black; _listView.Dock = DockStyle.Fill; _listView.Margin = new Padding(0); _listView.BorderStyle = BorderStyle.None; _tableLayout.Controls.Add(_listView, 0, 2); _panelPhoneListHeading.ControlReceivingFocusOnMnemonic = _listView; _listView.Load(); _listView.FeatureChanged += delegate { UpdateDisplay(); }; _listView.DrawItemBackgroundAndGetForeColor = ListViewItemBackgroundPainter; }
/// ------------------------------------------------------------------------------------ public DistinctiveFeaturesDlg(FeaturesDlgViewModel viewModel) : base(viewModel, new DistinctiveFeatureListView()) { InitializeComponent(); _tableLayoutDistinctiveFeatureSet.Visible = true; }
/// ------------------------------------------------------------------------------------ public DescriptiveFeaturesDlg(FeaturesDlgViewModel viewModel) : base(viewModel, new DescriptiveFeatureListView()) { InitializeComponent(); _listView.EmphasizeCheckedItems = true; }