aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio')
-rw-r--r--Software/Visual_Studio/Notes/Tango.Notes/DB/Repair Suspect Mode.txt6
-rw-r--r--Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj3
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs23
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest2
-rw-r--r--Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs13
5 files changed, 43 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Notes/Tango.Notes/DB/Repair Suspect Mode.txt b/Software/Visual_Studio/Notes/Tango.Notes/DB/Repair Suspect Mode.txt
new file mode 100644
index 000000000..b66eca7d3
--- /dev/null
+++ b/Software/Visual_Studio/Notes/Tango.Notes/DB/Repair Suspect Mode.txt
@@ -0,0 +1,6 @@
+EXEC sp_resetstatus Tango_TEST;
+ALTER DATABASE Tango_TEST SET EMERGENCY
+DBCC checkdb(Tango_TEST)
+ALTER DATABASE Tango_TEST SET SINGLE_USER WITH ROLLBACK IMMEDIATE
+DBCC CheckDB (Tango_TEST, REPAIR_ALLOW_DATA_LOSS)
+ALTER DATABASE Tango_TEST SET MULTI_USER \ No newline at end of file
diff --git a/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj b/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj
index 9f2d91731..7c0014747 100644
--- a/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj
+++ b/Software/Visual_Studio/Notes/Tango.Notes/Tango.Notes.csproj
@@ -50,6 +50,7 @@
<Content Include="Azure\Test User Credentials.txt" />
<Content Include="Azure\SQL Database.txt" />
<None Include="DB\Fix Domain User Script.bat" />
+ <Content Include="DB\Repair Suspect Mode.txt" />
<Content Include="DB\DB Schema Change Log.txt" />
<Content Include="DB\Drop All Tables.sql" />
<Content Include="DB\Fix Job Corrupted Runs Start Time.sql" />
@@ -72,7 +73,7 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<ProjectExtensions>
<VisualStudio>
- <UserProperties BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UseGlobalSettings="False" BuildVersion_StartDate="2000/1/1" />
+ <UserProperties BuildVersion_StartDate="2000/1/1" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildVersioningStyle="None.None.Increment.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_AssemblyInfoFilename="Properties\AssemblyInfo.cs" />
</VisualStudio>
</ProjectExtensions>
</Project> \ No newline at end of file
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs b/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs
index 27256cbdb..17785bb3c 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.DataSynchronizer.CLI/Program.cs
@@ -59,6 +59,7 @@ namespace Tango.PPC.DataSynchronizer.CLI
OverrideData();
UpdateMachine();
+ //ProvisionMachine();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Synchronization Completed Successfully.");
@@ -113,5 +114,27 @@ namespace Tango.PPC.DataSynchronizer.CLI
throw new InvalidOperationException(result.Output);
}
}
+
+ private void ProvisionMachine()
+ {
+ Console.WriteLine("Executing provision machine script...");
+
+ ExaminerConfigurationBuilder builder = new ExaminerConfigurationBuilder(ExaminerConfigurationType.ProvisionMachine);
+ builder.SetSource(source).SetTarget(target).SetMachineSerialNumber(MACHINE_SERIAL_NUMBER).Synchronize();
+ var process = new ExaminerProcess(builder.Build(), ExaminerProcessType.Data);
+ process.Progress += (x, msg) =>
+ {
+ if (msg != null && !msg.Contains("SQL Examiner"))
+ {
+ Console.WriteLine(msg);
+ }
+ };
+ var result = process.Execute().Result;
+
+ if (result.ExitCode != ExaminerProcessExitCode.Success)
+ {
+ throw new InvalidOperationException(result.Output);
+ }
+ }
}
}
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest b/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
index d72e75011..efc5f8179 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/app.manifest
@@ -16,7 +16,7 @@
Remove this element if your application requires this virtualization for backwards
compatibility.
-->
- <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
+ <!--<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />-->
</requestedPrivileges>
</security>
</trustInfo>
diff --git a/Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs b/Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs
index 7fc5d2deb..dffe8472e 100644
--- a/Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs
+++ b/Software/Visual_Studio/Tango.ColorConversion/DefaultColorConverter.cs
@@ -84,6 +84,9 @@ namespace Tango.ColorConversion
PMR.ColorLab.LiquidType.Magenta,
PMR.ColorLab.LiquidType.Yellow,
PMR.ColorLab.LiquidType.Black,
+ PMR.ColorLab.LiquidType.LightCyan,
+ PMR.ColorLab.LiquidType.LightMagenta,
+ PMR.ColorLab.LiquidType.LightYellow,
};
foreach (var ink in checkInks)
@@ -94,7 +97,7 @@ namespace Tango.ColorConversion
{
CalibrationData = Cat.CreateDemoCalibrationData(ink),
LiquidType = ink,
- MaxNanoliterPerCentimeter = 2.4,
+ MaxNanoliterPerCentimeter = 140,
Volume = 0
});
}
@@ -287,6 +290,9 @@ namespace Tango.ColorConversion
PMR.ColorLab.LiquidType.Magenta,
PMR.ColorLab.LiquidType.Yellow,
PMR.ColorLab.LiquidType.Black,
+ PMR.ColorLab.LiquidType.LightCyan,
+ PMR.ColorLab.LiquidType.LightMagenta,
+ PMR.ColorLab.LiquidType.LightYellow,
};
foreach (var ink in checkInks)
@@ -297,7 +303,7 @@ namespace Tango.ColorConversion
{
CalibrationData = Cat.CreateDemoCalibrationData(ink),
LiquidType = ink,
- MaxNanoliterPerCentimeter = 2.4,
+ MaxNanoliterPerCentimeter = 140,
Volume = 0
});
}
@@ -313,6 +319,9 @@ namespace Tango.ColorConversion
PMR.ColorLab.LiquidType.Magenta,
PMR.ColorLab.LiquidType.Yellow,
PMR.ColorLab.LiquidType.Black,
+ PMR.ColorLab.LiquidType.LightCyan,
+ PMR.ColorLab.LiquidType.LightMagenta,
+ PMR.ColorLab.LiquidType.LightYellow,
};
foreach (var ink in checkInks)