diff --git a/Networking.sln b/Networking.sln
index 3895bce..3105fee 100644
--- a/Networking.sln
+++ b/Networking.sln
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 15
-VisualStudioVersion = 15.0.28307.1684
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.31911.196
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Networking", "Networking\Networking.csproj", "{85D8795C-E9DC-4A59-B669-E2A8EEAC7A9E}"
EndProject
diff --git a/Networking/Networking.IPv4.xaml b/Networking/Networking.IPv4.xaml
index e9a5f10..cb8a2c4 100644
--- a/Networking/Networking.IPv4.xaml
+++ b/Networking/Networking.IPv4.xaml
@@ -8,7 +8,7 @@
d:DesignHeight="450" d:DesignWidth="800" Background="White">
-
+
@@ -30,5 +30,12 @@
+
+
+
+
+
+
diff --git a/Networking/Networking.IPv4.xaml.cs b/Networking/Networking.IPv4.xaml.cs
index ca0678e..2aaa2fa 100644
--- a/Networking/Networking.IPv4.xaml.cs
+++ b/Networking/Networking.IPv4.xaml.cs
@@ -42,6 +42,9 @@ namespace Networking
public IPage Page => this;
#endregion
+ private string _ipAddress = "0.0.0.0";
+ private string IPAddress { get => tbIPAddressP1.Text + "." + tbIPAddressP2.Text + "." + tbIPAddressP3.Text + "." + tbIPAddressP4.Text; set => _ipAddress = value; }
+
public Networking_IPv4()
{
InitializeComponent();
@@ -65,7 +68,7 @@ namespace Networking
{
try
{
- ip = new IPTool(tbIPAddress.Text);
+ ip = new IPTool(IPAddress);
fillIPCalc();
}
catch (Exception e)
@@ -247,19 +250,19 @@ namespace Networking
switch (tbNETClass.SelectedIndex)
{
case 0:
- tbIPAddress.Text = "1.0.0.1";
+ IPAddress = "1.0.0.1";
break;
case 1:
- tbIPAddress.Text = "128.0.0.1";
+ IPAddress = "128.0.0.1";
break;
case 2:
- tbIPAddress.Text = "192.0.0.1";
+ IPAddress = "192.0.0.1";
break;
case 3:
- tbIPAddress.Text = "224.0.0.1";
+ IPAddress = "224.0.0.1";
break;
case 4:
- tbIPAddress.Text = "240.0.0.1";
+ IPAddress = "240.0.0.1";
break;
}
@@ -291,7 +294,7 @@ namespace Networking
return;
}
ip = newIp;
- tbIPAddress.Text = ip.getIp();
+ IPAddress = ip.getIp();
}
catch (System.FormatException)
{
@@ -331,7 +334,7 @@ namespace Networking
return;
}
ip = newIp;
- tbIPAddress.Text = ip.getIp();
+ IPAddress = ip.getIp();
}
catch (System.FormatException)
{
diff --git a/Networking/Networking.csproj b/Networking/Networking.csproj
index 15473ad..054aefd 100644
--- a/Networking/Networking.csproj
+++ b/Networking/Networking.csproj
@@ -30,9 +30,15 @@
prompt
4
+
+ false
+
+
+ ..\packages\PTConverter.Plugin.1.0.2\lib\net472\PTConverter.Plugin.dll
+
@@ -60,5 +66,8 @@
+
+
+
\ No newline at end of file
diff --git a/Networking/packages.config b/Networking/packages.config
new file mode 100644
index 0000000..d8fbadb
--- /dev/null
+++ b/Networking/packages.config
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file