Pdf vykres
This commit is contained in:
@@ -492,7 +492,7 @@ namespace Mip
|
||||
string IPaddress = "";
|
||||
PingReply pingReply;
|
||||
|
||||
IPaddress = "192.168.1.12"; //IP Adresa MariaDB pre VLAN1
|
||||
IPaddress = "192.168.2.12"; //IP Adresa MariaDB pre VLAN1
|
||||
|
||||
//ked sa programuje mino firmu aby to hned naslo staticku ip
|
||||
//IPaddress = "87.197.164.107";
|
||||
@@ -505,7 +505,7 @@ namespace Mip
|
||||
}
|
||||
else
|
||||
{
|
||||
IPaddress = "192.168.1.13"; //IP Adresa MariaDB pre VLAN2
|
||||
IPaddress = "192.168.2.13"; //IP Adresa MariaDB pre VLAN2
|
||||
pingReply = pingIP.Send(IPaddress);
|
||||
if (pingReply.Status.ToString() == "Success")
|
||||
{
|
||||
@@ -514,7 +514,7 @@ namespace Mip
|
||||
else
|
||||
{
|
||||
|
||||
IPaddress = "87.197.164.107";
|
||||
IPaddress = "127.0.0.1";
|
||||
pingReply = pingIP.Send(IPaddress);
|
||||
if (pingReply.Status.ToString() == "Success")
|
||||
{
|
||||
@@ -530,7 +530,22 @@ namespace Mip
|
||||
Environment.Exit(0);
|
||||
|
||||
}
|
||||
|
||||
//IPaddress = "87.197.164.107";
|
||||
//pingReply = pingIP.Send(IPaddress);
|
||||
//if (pingReply.Status.ToString() == "Success")
|
||||
//{
|
||||
// classUser.MariaDBServerIPAddress = IPaddress;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// classUser.MariaDBServerIPAddress = "0.0.0.0";
|
||||
// MessageBox.Show("Žiadny lokálny ani internetový MariaDB server nebol nájdený!"
|
||||
// + Environment.NewLine
|
||||
// + "Program Mip bude ukončený! ");
|
||||
|
||||
// Environment.Exit(0);
|
||||
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user