function PatchCallback(idx)
global maingui

h = zoom;
if strcmp(h.Enable,'on')
    return;
end
    
ch = MenuBox('Remove this Exclude Region?',{'Yes','No'});
if ch==2
    return
end

iCh = maingui.axesSDG.iCh;
iDataBlks =  maingui.dataTree.currElem.GetDataBlocksIdxs(iCh);
for iBlk=1:iDataBlks
    tInc = maingui.dataTree.currElem.GetTincMan(iBlk);
    t = maingui.dataTree.currElem.GetTime(iBlk);
    p = TimeExcludeRanges(tInc,t);
    lst = find(t>=p(idx,1) & t<=p(idx,2));
    maingui.dataTree.currElem.SetTincMan(lst, iBlk, 'include');
end
maingui.Update('PatchCallback');


