New version 1.005
This commit is contained in:
@@ -25,7 +25,7 @@ namespace Mip
|
||||
public static void CreateRamDisk()
|
||||
{
|
||||
classDiskOperations.CreatePath();
|
||||
//classDiskOperations.RemoveCurrentUserProtecion(classDiskOperations.TempPath);
|
||||
classDiskOperations.RemoveCurrentUserProtecion(classDiskOperations.TempPath);
|
||||
classDiskOperations.MapDrive(Disk, classDiskOperations.TempPath);
|
||||
|
||||
}
|
||||
@@ -37,11 +37,9 @@ namespace Mip
|
||||
|
||||
public static void DeleteRamDisk()
|
||||
{
|
||||
string TempPath = Application.StartupPath + @"\MipTemp";
|
||||
classDiskOperations.CreatePath();
|
||||
classDiskOperations.UnmapDrive(Disk);
|
||||
classDiskOperations.RemovePath(TempPath);
|
||||
//classDiskOperations.AddCurrentUserProtecion(classDiskOperations.TempPath);
|
||||
classDiskOperations.AddCurrentUserProtecion(classDiskOperations.TempPath);
|
||||
|
||||
}
|
||||
|
||||
@@ -495,9 +493,10 @@ namespace Mip
|
||||
PingReply pingReply;
|
||||
|
||||
IPaddress = "192.168.1.12"; //IP Adresa MariaDB pre VLAN1
|
||||
|
||||
|
||||
//ked sa programuje mino firmu aby to hned naslo staticku ip
|
||||
IPaddress = "87.197.164.107";
|
||||
//IPaddress = "87.197.164.107";
|
||||
|
||||
pingReply = pingIP.Send(IPaddress);
|
||||
if (pingReply.Status.ToString() == "Success")
|
||||
{
|
||||
@@ -653,15 +652,16 @@ namespace Mip
|
||||
break;
|
||||
|
||||
case "Ziadanka-zobrazit vsetky":
|
||||
switch (_IDUSER)
|
||||
switch(_IDUSER)
|
||||
{
|
||||
case 1:
|
||||
case 4:
|
||||
case 6:
|
||||
case 9:
|
||||
case 1:
|
||||
case 4:
|
||||
case 9:
|
||||
case 13:
|
||||
case 26:
|
||||
case 28:
|
||||
case 29:
|
||||
case 30:
|
||||
bReturnValue = true;
|
||||
break;
|
||||
|
||||
@@ -677,7 +677,6 @@ namespace Mip
|
||||
{
|
||||
case 1:
|
||||
case 4:
|
||||
case 6:
|
||||
case 9:
|
||||
case 13:
|
||||
case 24:
|
||||
@@ -711,12 +710,12 @@ namespace Mip
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
default :
|
||||
bReturnValue = false;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
|
||||
return bReturnValue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user