Optimise code and change server location

This commit is contained in:
JackCarterSmith 2017-08-05 01:18:13 +02:00
parent 71992d438f
commit f469cc685b
5 changed files with 19 additions and 13 deletions

View File

@ -58,6 +58,16 @@ generate:
End Sub End Sub
Private Sub PrintDocument1_PrintPage(sender As Object, e As PrintPageEventArgs) Handles PrintDocument1.PrintPage Private Sub PrintDocument1_PrintPage(sender As Object, e As PrintPageEventArgs) Handles PrintDocument1.PrintPage
Dim PSize As PaperSize = Nothing
For Each PaperSizeContained As PaperSize In PrintDocument1.PrinterSettings.PaperSizes
If (PaperSizeContained.RawKind = PaperKind.A5) Then
PSize = PaperSizeContained
Exit For
End If
Next PaperSizeContained
If (PSize Is Nothing) Then
MsgBox("Oops! Can't find A5 paper for this printer.")
Exit Sub
End If
End Sub End Sub
End Class End Class

View File

@ -16,7 +16,7 @@
<NuGetPackageImportStamp> <NuGetPackageImportStamp>
</NuGetPackageImportStamp> </NuGetPackageImportStamp>
<IsWebBootstrapper>true</IsWebBootstrapper> <IsWebBootstrapper>true</IsWebBootstrapper>
<PublishUrl>ftp://files.000webhost.com/public_html/inv_manager/</PublishUrl> <PublishUrl>D:\ARECH\Desktop\InvManager_output\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Web</InstallFrom> <InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled> <UpdateEnabled>true</UpdateEnabled>
@ -26,7 +26,7 @@
<UpdatePeriodically>false</UpdatePeriodically> <UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired> <UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions> <MapFileExtensions>true</MapFileExtensions>
<InstallUrl>https://blackreality.000webhostapp.com/inv_manager/</InstallUrl> <InstallUrl>https://jcs.bfnt.io/inv_manager/</InstallUrl>
<TargetCulture>fr</TargetCulture> <TargetCulture>fr</TargetCulture>
<ProductName>ISEN-Repair Inventory Manager</ProductName> <ProductName>ISEN-Repair Inventory Manager</ProductName>
<PublisherName>JCS%27s Production</PublisherName> <PublisherName>JCS%27s Production</PublisherName>
@ -35,7 +35,7 @@
<CreateWebPageOnPublish>true</CreateWebPageOnPublish> <CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.htm</WebPage> <WebPage>index.htm</WebPage>
<OpenBrowserOnPublish>false</OpenBrowserOnPublish> <OpenBrowserOnPublish>false</OpenBrowserOnPublish>
<ApplicationRevision>2</ApplicationRevision> <ApplicationRevision>3</ApplicationRevision>
<ApplicationVersion>0.9.5.%2a</ApplicationVersion> <ApplicationVersion>0.9.5.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut> <CreateDesktopShortcut>true</CreateDesktopShortcut>

View File

@ -459,6 +459,7 @@ Partial Class Main
Me.Controls.Add(Me.GroupBox1) Me.Controls.Add(Me.GroupBox1)
Me.Controls.Add(Me.StatusStrip1) Me.Controls.Add(Me.StatusStrip1)
Me.Controls.Add(Me.MenuStrip1) Me.Controls.Add(Me.MenuStrip1)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon)
Me.MainMenuStrip = Me.MenuStrip1 Me.MainMenuStrip = Me.MenuStrip1
Me.MaximizeBox = False Me.MaximizeBox = False

View File

@ -137,7 +137,7 @@ Public Class Main
CREATE TABLE `credits` ( CREATE TABLE `credits` (
`pseudo` TEXT DEFAULT 'JackCarterSmith' UNIQUE, `pseudo` TEXT DEFAULT 'JackCarterSmith' UNIQUE,
`contact` TEXT DEFAULT 'j@bfnt.io' UNIQUE, `contact` TEXT DEFAULT 'j@bfnt.io' UNIQUE,
`commentaire` TEXT DEFAULT 'Vous avez trouvé un EasterEgg félicitation !' UNIQUE `commentaire` TEXT DEFAULT 'Vous avez trouvé un easter egg, félicitations !' UNIQUE
);" );"
Try Try
@ -208,15 +208,14 @@ Public Class Main
Private Sub IDBox_TextChanged(sender As Object, e As EventArgs) Handles IDBox.TextChanged Private Sub IDBox_TextChanged(sender As Object, e As EventArgs) Handles IDBox.TextChanged
If IDBox.Text = "666" Then If IDBox.Text = "666" Then
manualID_selected = True manualID_selected = True
StatusLabel.Text = "ID trouvé !" NameBox.Text = "DELL Fuel Burning Serial - Complete Collection"
NameBox.Text = "DELL Fuel Burning Serial - Complete collection" EtatBox.Text = "Détonateur armé"
EtatBox.Text = "Detonator armed"
SerieCheckBox.Checked = True SerieCheckBox.Checked = True
DetailsBox.Text = "DEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEAD" DetailsBox.Text = "DEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEADDEAD"
EmpruntCheckBox.Checked = False EmpruntCheckBox.Checked = False
EmprunterName.Text = "Fuyez pauvre fou !" EmprunterName.Text = "Fuyez pauvre fou !"
GivenByBox.Text = "Enfer" GivenByBox.Text = "Enfer"
StatusLabel.Text = "Vous avez trouvé un EasterEgg félicitation !" StatusLabel.Text = "Vous avez trouvé un easter egg, félicitations !"
End If End If
If IDBox.Text.Length() = 10 Then If IDBox.Text.Length() = 10 Then
Dim dtr As SQLiteDataReader Dim dtr As SQLiteDataReader

View File

@ -25,8 +25,4 @@
'Informations de copyright 'Informations de copyright
Copyright.Text = My.Application.Info.Copyright Copyright.Text = My.Application.Info.Copyright
End Sub End Sub
Private Sub MainLayoutPanel_Paint(sender As Object, e As PaintEventArgs) Handles MainLayoutPanel.Paint
End Sub
End Class End Class