Пример #1
0
        public void CellEdited(object sender, DataGridViewCellEventArgs e)
        {
            var data = new Metadata
            {
                Name = (string)dataGridView1.Rows[e.RowIndex].Cells[0].Value,
                Value = ((string)dataGridView1.Rows[e.RowIndex].Cells[1].Value).Split(new [] { ", " }, StringSplitOptions.None)
            };

            parser.SetMetadata(data);
        }
Пример #2
0
 public override void SetMetadata(Metadata data)
 {
 }
Пример #3
0
 public override void SetMetadata(Metadata data)
 {
     switch (data.Name)
     {
         case "Category": metadata.Category.Value = data.Value; break;
         case "ContentStatus": metadata.ContentStatus.Value = data.Value; break;
         case "ContentType": metadata.ContentType.Value = data.Value; break;
         case "Created": metadata.Created.Value = data.Value; break;
         case "Creator": metadata.Creator.Value = data.Value; break;
         case "Description": metadata.Description.Value = data.Value; break;
         case "Identifier": metadata.Identifier.Value = data.Value; break;
         case "Keywords": metadata.Keywords.Value = data.Value; break;
         case "Language": metadata.Language.Value = data.Value; break;
         case "LastModifiedBy": metadata.LastModifiedBy.Value = data.Value; break;
         case "LastPrinted": metadata.LastPrinted.Value = data.Value; break;
         case "Modified": metadata.Modified.Value = data.Value; break;
         case "Revision": metadata.Revision.Value = data.Value; break;
         case "Subject": metadata.Subject.Value = data.Value; break;
         case "Title": metadata.Title.Value = data.Value; break;
         case "Version": metadata.Version.Value = data.Value; break;
     }
 }
Пример #4
0
 public override void SetMetadata(Metadata data)
 {
     throw new NotImplementedException();
 }
Пример #5
0
 public abstract void SetMetadata(Metadata data);