Customize dms linker parameters on dragdrop in the dms control
It is possible to control the behavior of dms parsing/linking on drag drop. For this, override the method GetDmsLinkerParameters in ctrlDms3.xaml.cs:
public partial class wndDMS3Custom : ctrlDms3
{
    public new busDMSCustom BusObj
    {
        get
        {
            return base.BusObj as busDMSCustom;
        }
    }
    public override AutolinkParameters GetDmsLinkerParameters(System.Collections.Generic.IEnumerable<string> files)
    {
        var myParams = new AutolinkParameters()
        {
            Autolink = false,
            DetectLinksUsingEmailDomain = false,
            ScanBarcodes = false,
            ScanBarcodesInBackground = false,
            DoOcr = false,
            DoOcrInBackground = false,
            DetectDuplicates = false
        };
        
        Log.Info($"GetDmsLinkerParameters disabled all features.");
        
        return myParams;
   }
}This works on all dms folders except "E-Mails". For that one you need to also override the same method in wndEmailClient2.xaml.cs. This is because the mails node is bound to the e-mails module which is embedded in the dms control.
Last updated