private void btnReadFiles_Click(object sender, EventArgs e) { this.WaitCursor(true); this.selectedTag = (FieldComboBoxEntry)this.cmbField.SelectedItem; // dateien suchen if (this.files == null) { FindFiles(); } this.ProgressBarMaximum = this.files.Count; this.tags = new TagCollection((FieldComboBoxEntry)this.cmbField.SelectedItem); foreach (MassWorkingFile f in this.files) { this.tags.RegisterFile(f); this.ProgressBarValue++; } // dateilist löschen if (!this.chkCaching.Checked) { ClearFiles(); } DisplayGrid(); this.ProgressBarMaximum = 0; this.WaitCursor(false); }
private void MassTaggingForm_Load(object sender, EventArgs e) { List <FieldComboBoxEntry> l = new List <FieldComboBoxEntry>(); if (Settings.Default.DisplayIPTCTagsWithFlickrNames) { l.Add(new FieldComboBoxEntry("Tags", Schroeter.Photo.Iptc.KEYWORDS, true)); } else { l.Add(new FieldComboBoxEntry("Keywords", Schroeter.Photo.Iptc.KEYWORDS, true)); } l.Add(new FieldComboBoxEntry("Headline", Schroeter.Photo.Iptc.HEADLINE, true)); if (Settings.Default.DisplayIPTCTagsWithFlickrNames) { l.Add(new FieldComboBoxEntry("Description", Schroeter.Photo.Iptc.CAPTION, false)); } else { l.Add(new FieldComboBoxEntry("Caption", Schroeter.Photo.Iptc.CAPTION, false)); } if (Settings.Default.DisplayIPTCTagsWithFlickrNames) { l.Add(new FieldComboBoxEntry("Title", Schroeter.Photo.Iptc.OBJECT_NAME, false)); } else { l.Add(new FieldComboBoxEntry("Object Name", Schroeter.Photo.Iptc.OBJECT_NAME, false)); } l.Add(new FieldComboBoxEntry("Writer", Schroeter.Photo.Iptc.WRITER, true)); l.Add(new FieldComboBoxEntry("Author (byline)", Schroeter.Photo.Iptc.BYLINE, true)); l.Add(new FieldComboBoxEntry("Copyright", Schroeter.Photo.Iptc.COPYRIGHT, false)); l.Add(new FieldComboBoxEntry("Contact", Schroeter.Photo.Iptc.CONTACT, true)); l.Add(new FieldComboBoxEntry("City", Schroeter.Photo.Iptc.CITY, false)); l.Add(new FieldComboBoxEntry("Sublocation", Schroeter.Photo.Iptc.SUB_LOCATION, false)); l.Add(new FieldComboBoxEntry("Province/state", Schroeter.Photo.Iptc.PROVINCE_STATE, false)); l.Add(new FieldComboBoxEntry("Country name", Schroeter.Photo.Iptc.COUNTRY_NAME, false)); l.Add(new FieldComboBoxEntry("Country code", Schroeter.Photo.Iptc.COUNTRY_CODE, false)); this.cmbField.DataSource = l; this.cmbField.SelectedIndex = 0; this.selectedTag = (FieldComboBoxEntry)this.cmbField.SelectedItem; }
public TagCollection(FieldComboBoxEntry field) { this.field = field; this.tags = new Dictionary <string, TagEntry>(); }