private static void DrawFilterListItem(ListViewItem row, Config.Item item) { row.Tag = item; row.SubItems[0].Text = ConfigurationItemHelper.GetDisplayValue(item); if (row.SubItems.Count == 1) { row.SubItems.Add(item.ToString()); } else { row.SubItems[1].Text = item.ToString(); } }
public ExceptFilterForm(Config.ExceptItem value) : base(value) { InitializeComponent(); Icon = Properties.Resources.DJDSOFT; ArrangeControls(); FilterDescriptionLabel.Text = ConfigurationItemHelper.GetDisplayValue(EditValue); FillFilterType(FilterTypeComboBox); FillFilterListView(); SwitchFilterControls(); HasChanged = false; }
public ChoiceFilterForm(Config.ValueItem value) : base(value) { InitializeComponent(); Icon = Properties.Resources.DJDSOFT; FilterDescriptionLabel.Text = ConfigurationItemHelper.GetDisplayValue(EditValue); ValueCheckBox.Checked = EditValue.Choice; ArrangeControls(); SetLabels(); HasChanged = false; }
public EventFilterForm(Config.HasEventItem value) : base(value) { InitializeComponent(); Icon = Properties.Resources.DJDSOFT; ArrangeControls(); EventTypeComboBox.Items.Add(Config.HasEventItemEventType.Watched.ToString()); EventTypeComboBox.Items.Add(Config.HasEventItemEventType.Borrowed.ToString()); EventTypeComboBox.Items.Add(Config.HasEventItemEventType.Returned.ToString()); FilterDescriptionLabel.Text = ConfigurationItemHelper.GetDisplayValue(EditValue); ChoiceCheckBox.Checked = EditValue.Choice; EventTypeComboBox.SelectedItem = EditValue.EventType.ToString(); UserFirstNameTextBox.Text = EditValue.UserFirstName; UserLastNameTextBox.Text = EditValue.UserLastName; SetLabels(); HasChanged = false; }
public FilterTypeComboBoxItem(Type type) { ValueMember = type; DisplayMember = ConfigurationItemHelper.GetDisplayValue(type); }