Initial LMEMoxaTransfer application
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
+31
@@ -0,0 +1,31 @@
|
||||
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>
|
||||
Partial Class Form1
|
||||
Inherits System.Windows.Forms.Form
|
||||
|
||||
'Form overrides dispose to clean up the component list.
|
||||
<System.Diagnostics.DebuggerNonUserCode()>
|
||||
Protected Overrides Sub Dispose(disposing As Boolean)
|
||||
Try
|
||||
If disposing AndAlso components IsNot Nothing Then
|
||||
components.Dispose()
|
||||
End If
|
||||
Finally
|
||||
MyBase.Dispose(disposing)
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
'Required by the Windows Form Designer
|
||||
Private components As System.ComponentModel.IContainer
|
||||
|
||||
'NOTE: The following procedure is required by the Windows Form Designer
|
||||
'It can be modified using the Windows Form Designer.
|
||||
'Do not modify it using the code editor.
|
||||
<System.Diagnostics.DebuggerStepThrough()>
|
||||
Private Sub InitializeComponent()
|
||||
components = New System.ComponentModel.Container()
|
||||
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
|
||||
Me.ClientSize = New System.Drawing.Size(800, 450)
|
||||
Me.Text = "Form1"
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
||||
Friend Module Program
|
||||
|
||||
<STAThread()>
|
||||
Friend Sub Main(args As String())
|
||||
Application.SetHighDpiMode(HighDpiMode.SystemAware)
|
||||
Application.EnableVisualStyles()
|
||||
Application.SetCompatibleTextRenderingDefault(False)
|
||||
Using splash As New SplashForm()
|
||||
splash.ShowDialog()
|
||||
End Using
|
||||
Application.Run(New Form1)
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Any CPU</Platform>
|
||||
<PublishDir>..\clickonce\</PublishDir>
|
||||
<PublishUrl>..\clickonce\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Web</InstallFrom>
|
||||
<UpdateEnabled>true</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>1</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdateUrl>https://gitea.lmcloud.it/livio/LMEMoxaTransfer/raw/branch/main/clickonce/</UpdateUrl>
|
||||
<InstallUrl>https://gitea.lmcloud.it/livio/LMEMoxaTransfer/raw/branch/main/clickonce/</InstallUrl>
|
||||
<ProductName>LMEMoxaTransfer</ProductName>
|
||||
<PublisherName>Compomac SPA</PublisherName>
|
||||
<SuiteName>Compomac SPA</SuiteName>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<GenerateManifests>true</GenerateManifests>
|
||||
<PublishSingleFile>false</PublishSingleFile>
|
||||
<SelfContained>false</SelfContained>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,72 @@
|
||||
Imports System.Reflection
|
||||
|
||||
Public Class SplashForm
|
||||
Inherits Form
|
||||
|
||||
Private ReadOnly closeTimer As New System.Windows.Forms.Timer()
|
||||
|
||||
Public Sub New()
|
||||
FormBorderStyle = FormBorderStyle.None
|
||||
StartPosition = FormStartPosition.CenterScreen
|
||||
ClientSize = New Size(520, 260)
|
||||
BackColor = Color.FromArgb(12, 18, 24)
|
||||
ShowInTaskbar = False
|
||||
|
||||
Dim iconPath = IO.Path.Combine(Application.StartupPath, "Assets", "app-icon.png")
|
||||
Dim picture As New PictureBox With {
|
||||
.SizeMode = PictureBoxSizeMode.Zoom,
|
||||
.Left = 34,
|
||||
.Top = 42,
|
||||
.Width = 150,
|
||||
.Height = 150
|
||||
}
|
||||
If IO.File.Exists(iconPath) Then
|
||||
picture.Image = Image.FromFile(iconPath)
|
||||
End If
|
||||
Controls.Add(picture)
|
||||
|
||||
Dim title As New Label With {
|
||||
.Text = "LMEMoxaTransfer",
|
||||
.ForeColor = Color.White,
|
||||
.Font = New Font("Segoe UI", 24.0F, FontStyle.Bold),
|
||||
.Left = 205,
|
||||
.Top = 62,
|
||||
.Width = 290,
|
||||
.Height = 44
|
||||
}
|
||||
Controls.Add(title)
|
||||
|
||||
Dim subtitle As New Label With {
|
||||
.Text = "Trasferimento programmi Okuma via Moxa",
|
||||
.ForeColor = Color.FromArgb(170, 225, 220),
|
||||
.Font = New Font("Segoe UI", 10.5F),
|
||||
.Left = 208,
|
||||
.Top = 112,
|
||||
.Width = 290,
|
||||
.Height = 28
|
||||
}
|
||||
Controls.Add(subtitle)
|
||||
|
||||
Dim versionLabel As New Label With {
|
||||
.Text = $"Compomac SPA - Livio Merola - v{Assembly.GetExecutingAssembly().GetName().Version}",
|
||||
.ForeColor = Color.FromArgb(180, 190, 200),
|
||||
.Font = New Font("Segoe UI", 9.0F),
|
||||
.Left = 208,
|
||||
.Top = 154,
|
||||
.Width = 290,
|
||||
.Height = 28
|
||||
}
|
||||
Controls.Add(versionLabel)
|
||||
|
||||
closeTimer.Interval = 1400
|
||||
AddHandler closeTimer.Tick, Sub()
|
||||
closeTimer.Stop()
|
||||
Close()
|
||||
End Sub
|
||||
End Sub
|
||||
|
||||
Protected Overrides Sub OnShown(e As EventArgs)
|
||||
MyBase.OnShown(e)
|
||||
closeTimer.Start()
|
||||
End Sub
|
||||
End Class
|
||||
@@ -0,0 +1,44 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<RootNamespace>TrasferimentoProgrammiOkuma.App</RootNamespace>
|
||||
<AssemblyName>LMEMoxaTransfer</AssemblyName>
|
||||
<Product>LMEMoxaTransfer</Product>
|
||||
<AssemblyTitle>LMEMoxaTransfer</AssemblyTitle>
|
||||
<Company>Compomac SPA</Company>
|
||||
<Authors>Livio Merola</Authors>
|
||||
<Version>1.0.0</Version>
|
||||
<ApplicationIcon>Assets\app-icon.ico</ApplicationIcon>
|
||||
<StartupObject>Sub Main</StartupObject>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Import Include="System.Data" />
|
||||
<Import Include="System.Drawing" />
|
||||
<Import Include="System.Windows.Forms" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="moxa-okuma-settings.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</None>
|
||||
<Content Include="Assets\app-icon.ico">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Assets\app-icon.png">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="CopyClickOnceManifestsToPublishDir" AfterTargets="Publish">
|
||||
<ItemGroup>
|
||||
<ClickOnceManifestFiles Include="$(TargetDir)$(AssemblyName).application" />
|
||||
<ClickOnceManifestFiles Include="$(TargetDir)$(AssemblyName).dll.manifest" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(ClickOnceManifestFiles)" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,129 @@
|
||||
{
|
||||
"AdminPasswordHash": "NZHINCSfx8Y4PePhYcXhbf/psJfiBfrDWRO0AgGnfE0=",
|
||||
"AdminPasswordSalt": "QY9k9R4AmZvvj13geQ9N8A==",
|
||||
"DefaultCompany": "SECUREX",
|
||||
"MonitorRefreshSeconds": 30,
|
||||
"LastReceiveDirectory": "",
|
||||
"DefaultSettings": {
|
||||
"Port": 10001,
|
||||
"ConnectionTimeoutSeconds": 10,
|
||||
"ReceiveIdleTimeoutSeconds": 15,
|
||||
"SendTerminator": "%",
|
||||
"LineDelayMs": 100,
|
||||
"CharDelayMs": 10,
|
||||
"LinePaced": true,
|
||||
"CharPaced": false,
|
||||
"BlockPaced": false,
|
||||
"BlockSizeBytes": 32,
|
||||
"BlockDelayMs": 100,
|
||||
"WaitBeforeSendSeconds": 2,
|
||||
"WaitAfterSendSeconds": 2
|
||||
},
|
||||
"Companies": [
|
||||
{
|
||||
"Name": "SECUREX",
|
||||
"Machines": [
|
||||
{
|
||||
"Name": "M4 - N2LB 300",
|
||||
"IpMoxa": "192.168.0.101",
|
||||
"IpMachineWise": "192.168.0.214",
|
||||
"Note": "OSP-U100L"
|
||||
},
|
||||
{
|
||||
"Name": "M5 - N3LB 300",
|
||||
"IpMoxa": "192.168.0.146",
|
||||
"IpMachineWise": "192.168.0.47",
|
||||
"Note": "OSP-E100L"
|
||||
},
|
||||
{
|
||||
"Name": "M8 - CENTRO OKUMA",
|
||||
"IpMoxa": "192.168.0.113",
|
||||
"IpMachineWise": "192.168.0.68",
|
||||
"Note": "OSP-P200M"
|
||||
},
|
||||
{
|
||||
"Name": "M11 - TORNIO OKUMA LB25I-N",
|
||||
"IpMoxa": "192.168.0.88",
|
||||
"IpMachineWise": "192.168.0.223",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M12 - TORNIO OKUMA LB 400",
|
||||
"IpMoxa": "192.168.0.99",
|
||||
"IpMachineWise": "192.168.0.66",
|
||||
"Note": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "EMILIA",
|
||||
"Machines": [
|
||||
{
|
||||
"Name": "M1",
|
||||
"IpMoxa": "192.168.30.8",
|
||||
"IpMachineWise": "192.168.30.221",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M2",
|
||||
"IpMoxa": "192.168.30.9",
|
||||
"IpMachineWise": "192.168.30.222",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M3",
|
||||
"IpMoxa": "192.168.30.10",
|
||||
"IpMachineWise": "192.168.30.223",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M4 - CENTRO LAVORO OKUMA",
|
||||
"IpMoxa": "192.168.30.11",
|
||||
"IpMachineWise": "192.168.30.224",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M5",
|
||||
"IpMoxa": "192.168.30.12",
|
||||
"IpMachineWise": "192.168.30.225",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M6",
|
||||
"IpMoxa": "192.168.30.13",
|
||||
"IpMachineWise": "192.168.30.226",
|
||||
"Note": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": "SMART",
|
||||
"Machines": [
|
||||
{
|
||||
"Name": "M1",
|
||||
"IpMoxa": "192.168.35.10",
|
||||
"IpMachineWise": "192.168.35.212",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M2",
|
||||
"IpMoxa": "192.168.35.11",
|
||||
"IpMachineWise": "192.168.35.211",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M3",
|
||||
"IpMoxa": "192.168.35.12",
|
||||
"IpMachineWise": "192.168.35.213",
|
||||
"Note": ""
|
||||
},
|
||||
{
|
||||
"Name": "M4 - CENTRO LAVORO OKUMA",
|
||||
"IpMoxa": "192.168.35.13",
|
||||
"IpMachineWise": "192.168.35.214",
|
||||
"Note": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user