Example #1
0
 private void AddToArkiv(string file)
 {
     if (file.StartsWith(Program.bjArkivWatcher.Path + @"\.bja", StringComparison.CurrentCultureIgnoreCase))
     {
         return;
     }
     m_arkiv.EditMetadata(file);
 }
Example #2
0
 private void flView_CustomContextMenuItemSelect(object sender, CustomContextMenuItemSelectEventArgs e)
 {
     if (e.Caption.Contains("Edit Metadata")) // custom menu item added to item menu
     {
         // Write path of each selected item in separate lines
         foreach (ListItem item in flView.SelectedItems)
         {
             if (item.IsFolder())
             {
                 return;
             }
             string file = item.Path;
             if (file.StartsWith(Program.bjArkivWatcher.Path + @"\.bja", StringComparison.CurrentCultureIgnoreCase))
             {
                 return;
             }
             clsArkiv arkiv = new clsArkiv();
             arkiv.EditMetadata(file);
         }
     }
 }