Skip to content

Commit 6ca90f0

Browse files
committed
Update names
1 parent 2a780a3 commit 6ca90f0

File tree

13 files changed

+35
-31
lines changed

13 files changed

+35
-31
lines changed

SCrawler/API/Base/UserDataBase.vb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
' This program is distributed in the hope that it will be useful,
88
' but WITHOUT ANY WARRANTY
99
Imports PersonalUtilities.Functions.XML
10+
Imports PersonalUtilities.Functions.XML.Objects
1011
Imports PersonalUtilities.Functions.RegularExpressions
1112
Imports PersonalUtilities.Forms.Toolbars
1213
Imports PersonalUtilities.Tools
@@ -250,7 +251,7 @@ Namespace API.Base
250251
Catch
251252
End Try
252253
End Sub
253-
Protected Function GetNullPicture(ByVal MaxHeigh As XML.Base.XMLValue(Of Integer)) As Bitmap
254+
Protected Function GetNullPicture(ByVal MaxHeigh As XMLValue(Of Integer)) As Bitmap
254255
Return New Bitmap(CInt(DivideWithZeroChecking(MaxHeigh.Value, 100) * 75), MaxHeigh.Value)
255256
End Function
256257
Friend Function GetPicture(Of T)(Optional ByVal ReturnNullImageOnNothing As Boolean = True, Optional ByVal GetToast As Boolean = False) As T

SCrawler/API/BaseObjects/DomainEnvir.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Namespace API.BaseObjects
7171
.Icon = s.Icon,
7272
.LocationOnly = True,
7373
.Size = New Size(400, 330),
74-
.DesignXMLNode = s.Site
74+
.DesignXMLNodeName = s.Site
7575
}
7676
AddHandler f.AddClick, __add
7777
AddHandler f.DeleteClick, __delete

SCrawler/API/Instagram/SiteSettings.vb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Imports SCrawler.Plugin
1111
Imports SCrawler.Plugin.Attributes
1212
Imports PersonalUtilities.Forms
1313
Imports PersonalUtilities.Functions.XML
14+
Imports PersonalUtilities.Functions.XML.Objects
1415
Imports PersonalUtilities.Functions.XML.Base
1516
Imports PersonalUtilities.Functions.RegularExpressions
1617
Imports PersonalUtilities.Tools.Web.Clients
@@ -237,12 +238,12 @@ Namespace API.Instagram
237238
TaggedNotifyLimit = New PropertyValue(200)
238239
TaggedNotifyLimitProvider = New TaggedNotifyLimitChecker
239240

240-
DownloadingErrorDate = New XMLValue(Of Date) With {.Provider = New XMLValueConversionProvider(Function(ss, vv) AConvert(Of String)(vv, AModes.Var, Nothing))}
241+
DownloadingErrorDate = New XMLValue(Of Date) With {.Provider = New XMLValueConversionProvider(Function(ss, nn, vv, dd) AConvert(Of String)(vv, AModes.Var, Nothing))}
241242
DownloadingErrorDate.SetExtended("InstagramDownloadingErrorDate", Now.AddYears(-10), _XML, n)
242243
LastDownloadDate = New XMLValue(Of Date)("LastDownloadDate", Now.AddDays(-1), _XML, n)
243244
LastRequestsCount = New XMLValue(Of Integer)("LastRequestsCount", 0, _XML, n)
244245
LastRequestsCountLabel = New PropertyValue(LastRequestsCountLabelStr.Invoke(LastRequestsCount.Value))
245-
AddHandler LastRequestsCount.OnValueChanged, Sub(sender, __name, __value) LastRequestsCountLabel.Value = LastRequestsCountLabelStr.Invoke(DirectCast(__value, Existable(Of Integer)).Value)
246+
AddHandler LastRequestsCount.ValueChanged, Sub(sender, e) LastRequestsCountLabel.Value = LastRequestsCountLabelStr.Invoke(DirectCast(sender, XMLValue(Of Integer)).ValueF.Value)
246247

247248
UrlPatternUser = "https://www.instagram.com/{0}/"
248249
UserRegex = RParams.DMS("[htps:/]{7,8}.*?instagram.com/([^/]+)", 1)

SCrawler/Channels/ChannelViewForm.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ Friend Class ChannelViewForm : Implements IChannelLimits
211211
New ToolStripSeparator,
212212
New ToolStripControlHost(CH_HIDE_EXISTS_USERS),
213213
BTT_SHOW_STATS})
214-
AddHandler Settings.ChannelsImagesColumns.OnValueChanged, AddressOf ImagesCountChanged
215-
AddHandler Settings.ChannelsImagesRows.OnValueChanged, AddressOf ImagesCountChanged
214+
AddHandler Settings.ChannelsImagesColumns.ValueChanged, AddressOf ImagesCountChanged
215+
AddHandler Settings.ChannelsImagesRows.ValueChanged, AddressOf ImagesCountChanged
216216
End Sub
217217
#End Region
218218
#Region "Form handlers"
@@ -398,7 +398,7 @@ Friend Class ChannelViewForm : Implements IChannelLimits
398398
End With
399399
Return s
400400
End Function
401-
Private Sub ImagesCountChanged(ByVal Sender As Object, ByVal _Name As String, ByVal _Value As Object)
401+
Private Sub ImagesCountChanged(ByVal Sender As Object, ByVal e As EventArgs)
402402
AppendPendingUsers()
403403
MyRange.Limit = ImagesInRow * ImagesRows
404404
MyRange.GoTo(0)

SCrawler/Download/Feed/FeedMedia.vb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
'
77
' This program is distributed in the hope that it will be useful,
88
' but WITHOUT ANY WARRANTY
9-
'Imports System.Windows.Forms.PropertyGridInternal
109
Imports System.ComponentModel
1110
Imports SCrawler.API.Base
1211
Imports PersonalUtilities.Forms

SCrawler/Editors/SiteDefaults.vb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Namespace Editors
101101
SetChecker(CH.MyImagesDown, h.DownloadImages)
102102
SetChecker(CH.MyVideosDown, h.DownloadVideos)
103103
End Sub
104-
Private Overloads Shared Sub SetChecker(ByRef State As CheckState, ByVal Prop As XML.Base.XMLValue(Of Boolean))
104+
Private Overloads Shared Sub SetChecker(ByRef State As CheckState, ByVal Prop As XML.Objects.XMLValue(Of Boolean))
105105
If Prop.ValueF.Exists Then
106106
State = If(Prop.Value, CheckState.Checked, CheckState.Unchecked)
107107
Else
@@ -113,7 +113,7 @@ Namespace Editors
113113
SetPropByChecker(CH.MyImagesDown, h.DownloadImages)
114114
SetPropByChecker(CH.MyVideosDown, h.DownloadVideos)
115115
End Sub
116-
Private Overloads Shared Sub SetPropByChecker(ByVal State As CheckState, ByRef Prop As XML.Base.XMLValue(Of Boolean))
116+
Private Overloads Shared Sub SetPropByChecker(ByVal State As CheckState, ByRef Prop As XML.Objects.XMLValue(Of Boolean))
117117
Select Case State
118118
Case CheckState.Checked : Prop.Value = True
119119
Case CheckState.Unchecked : Prop.Value = False

SCrawler/LabelsKeeper.vb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
' This program is distributed in the hope that it will be useful,
88
' but WITHOUT ANY WARRANTY
99
Imports PersonalUtilities.Functions.XML
10-
Imports PersonalUtilities.Functions.XML.Base
10+
Imports PersonalUtilities.Functions.XML.Objects
1111
Imports PersonalUtilities.Tools
1212
Friend Class LabelsKeeper : Implements ICollection(Of String), IMyEnumerator(Of String), IDisposable
1313
Friend Event NewLabelAdded()
@@ -29,8 +29,8 @@ Friend Class LabelsKeeper : Implements ICollection(Of String), IMyEnumerator(Of
2929
LabelsList = New List(Of String)
3030
NewLabels = New List(Of String)
3131
If LabelsFile.Exists Then LabelsList.ListAddList(IO.File.ReadAllLines(LabelsFile), LAP.NotContainsOnly)
32-
Current = New XMLValuesCollection(Of String)(XMLValueBase.ListModes.String, "LatestSelectedLabels", x) With {.ListAddParameters = LAP.NotContainsOnly}
33-
Excluded = New XMLValuesCollection(Of String)(XMLValueBase.ListModes.String, "LatestExcludedLabels", x) With {.ListAddParameters = LAP.NotContainsOnly}
32+
Current = New XMLValuesCollection(Of String)(IXMLValuesCollection.Modes.String, "LatestSelectedLabels",, x) With {.ListAddParameters = LAP.NotContainsOnly}
33+
Excluded = New XMLValuesCollection(Of String)(IXMLValuesCollection.Modes.String, "LatestExcludedLabels",, x) With {.ListAddParameters = LAP.NotContainsOnly}
3434
ExcludedIgnore = New XMLValue(Of Boolean)("LatestExcludedLabelsIgnore", False, x)
3535
Dim lp As New ListAddParams(LAP.NotContainsOnly + LAP.IgnoreICopier)
3636
If Current.Count > 0 Then LabelsList.ListAddList(Current, lp)

SCrawler/MainFrame.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ CloseResume:
613613
BTT_SHOW_EXCLUDED_LABELS.Checked = Settings.Labels.Excluded.Count > 0
614614
BTT_SHOW_EXCLUDED_LABELS_IGNORE.Checked = Settings.Labels.ExcludedIgnore
615615
End Sub
616-
Private Function OpenLabelsForm(ByRef ll As XML.Base.XMLValuesCollection(Of String)) As Boolean
616+
Private Function OpenLabelsForm(ByRef ll As XML.Objects.XMLValuesCollection(Of String)) As Boolean
617617
Using f As New LabelsForm(ll) With {.WithDeleteButton = True}
618618
f.ShowDialog()
619619
If f.DialogResult = DialogResult.OK Then

SCrawler/MainMod.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
' This program is distributed in the hope that it will be useful,
88
' but WITHOUT ANY WARRANTY
99
Imports System.Runtime.CompilerServices
10-
Imports PersonalUtilities.Functions.XML.Base
10+
Imports PersonalUtilities.Functions.XML.Objects
1111
Imports PersonalUtilities.Functions.RegularExpressions
1212
Imports PersonalUtilities.Forms.Toolbars
1313
Imports PersonalUtilities.Tools

SCrawler/PluginsEnvironment/Hosts/PluginHost.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Imports System.Reflection
1010
Imports SCrawler.Plugin.Attributes
1111
Imports PersonalUtilities.Functions.XML
12-
Imports PersonalUtilities.Functions.XML.Base
12+
Imports PersonalUtilities.Functions.XML.Objects
1313
Imports PersonalUtilities.Tools.WEB.GitHub
1414
Namespace Plugin.Hosts
1515
Friend Class PluginHost

0 commit comments

Comments
 (0)