aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-06-23 09:05:29 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-06-23 09:05:29 +0300
commit230f73f478a6428a975a51789b6f43ca7a8a5ef8 (patch)
tree7d245111db13b87bae873e990d05ced7572df413 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs
parent67af9764fef96f05f61e20942b865a22645ca836 (diff)
downloadTango-230f73f478a6428a975a51789b6f43ca7a8a5ef8.tar.gz
Tango-230f73f478a6428a975a51789b6f43ca7a8a5ef8.zip
Implemented FSE "Application Restart" on remote desktop.
Fixed issue with insufficient liquid quantities dialog on MS. Added "Display Name" to MS RMLs list. Implemented sorting to all rmls lists on PPC. Implemented "Display Name" on all PPC rmls lists.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs
index 2a1bc1bbb..13cac9c88 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.RML/ViewModels/MainViewVM.cs
@@ -285,7 +285,7 @@ namespace Tango.MachineStudio.RML.ViewModels
using (ObservablesContext db = ObservablesContext.CreateDefault())
{
- var rmls = await db.Rmls.Where(x => x.Name.ToLower().Contains(filter))
+ var rmls = await db.Rmls.Where(x => x.Name.ToLower().Contains(filter) || x.DisplayName.ToLower().Contains(filter))
.Include(x => x.Cct.FileName)
.Include(x => x.LiquidTypesRmls.Select(y => y.LiquidType))
.Include(x => x.BtsrApplicationType.Name)
@@ -319,7 +319,7 @@ namespace Tango.MachineStudio.RML.ViewModels
model.UseGradients = rml.UseColorLibGradients;
model.UseLightInks = rml.UseLightInks;
model.HeadType = (HeadTypes)rml.HeadType;
- model.Btsr = rml.BtsrApplicationType + ", " + rml.BtsrYarnType;
+ model.Btsr = (String.IsNullOrEmpty(rml.BtsrApplicationType) ? "N/A" : rml.BtsrApplicationType) + ", " + (String.IsNullOrEmpty(rml.BtsrYarnType) ? "N/A" : rml.BtsrYarnType);
model.LiquidTypes = rml.LiquidTypes.OrderBy(x => x.Code).Select(x => x.Color).ToList();
models.Add(model);